RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomCombo.AddItem Method

Adds an item to the drop-down list of items.

Pascal
procedure AddItem(Item: String; AObject: TObject); override;
C++
virtual __fastcall AddItem(AnsiString Item, TObject * AObject);

Call AddItem to add a string, with an associated object, to the drop-down list. 

Item is the string to add to the drop-down list. 

AObject is an object associated with that string. It can be accessed using the Objects property of the TStrings object that implements the Items property. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!