What is the best way to set key/value pairs in a combo box?
For example I want to set:
- Key: T1 Value: test 1
- Key: T2 Value: test 2
- Ecc...
What is the best way to set key/value pairs in a combo box?
For example I want to set:
Copyright © 2021 Jogjafile Inc.
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.