Sign in Join
FPDoc Onlineexperiment

TCoolBands.FindBandIndex function

Member of TCoolBandspublicIn unit ComCtrls

Gets the ordinal position for the collection item which contains the specified control.

Declaration

pascal
function FindBandIndex(AControl: TControl): Integer

Arguments

AControl

Control to locate in the collection items.

Function result

Ordinal position for the collection item with the specified control, or -1 when not found.

Description

FindBandIndex is an Integer function used to get the ordinal position for the collection item which contains the control specified in AControl. FindBandIndex iterates over the values in Items to locate the TCoolBand instance whose Control property is the control specified in AControl. The return value is the position in the Items, or -1 if AControl is not used in one of the collection Items.

Use FindBand to get the collection item which contains a specified control.

See also

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