TiModeComboBox.GetItemCaption

TiModeComboBox

Used to get the caption of a Combo Box list by index.

function GetItemCaption(Index : Integer) : String;

Description

Use the GetItemCaption function to get the caption of a particular Mode Combo Box list by index value.

Note: the index value is the index of the item and not it's associated value property. When items are added to the Mode Combo Box control by using the AddItem procedure, the index of the item is 1 less than the ItemCount property.

Example

Delphi

Caption := iComponent.GetItemCaption(100);

C++ Builder

Caption = iComponent->GetItemCaption(100);

Contents | Index | Previous | Next