What is the best way to set key/value pairs in a combo box?
For example I want to set:
The TComboBox.Items property is a TStrings, which has AddPair() and AddObject() methods that allow you to associate a TObject value with each string. You can use that TObject to store whatever you want.
TComboBox.Items
TStrings
AddPair()
AddObject()
TObject
The
TComboBox.Items
property is aTStrings
, which hasAddPair()
andAddObject()
methods that allow you to associate aTObject
value with each string. You can use thatTObject
to store whatever you want.