Sign in Join
FPDoc Onlineexperiment

TScreen.CustomFormIndex function

Member of TScreenpublicIn unit Forms

Gets the ordinal position in CustomForms for the requested form.

Declaration

pascal
function CustomFormIndex(AForm: TCustomForm): Integer

Arguments

AForm

The form instance to locate in CustomForms.

Function result

The ordinal position for the form in CustomForms, or -1 when not found.

Description

CustomFormIndex is an Integer function used to get the position in CustomForms for the specified TCustomForm instance. It iterates over the values in CustomForms in reverse order. The return value contains the ordinal position in CustomForms where the TCustomForm instance in AForm was found, or -1 when AForm does not exist in CustomForms.

Use the FormIndex method to locate a form instance derived from TForm in the Forms property.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.