TScreen.FormIndex function
Gets the ordinal position in Forms for the requested form.
Declaration
function FormIndex(AForm: TForm): IntegerArguments
AForm | The TForm instance to locate in Forms. |
Function result
Ordinal position in Forms for the TForm instance, or -1 when not found.
Description
FormIndex is an
Integer function used to get the
position in
Forms where the specified
TForm instance in
located. It iterates over the values in Forms in reverse order. The return
value contains the ordinal position in Forms where the TForm instance in
AForm was found, or -1 when AForm does not exist in Forms.
Use the CustomFormIndex method to locate a form instance derived
from TCustomForm in the CustomForms property.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
