Oh, if you want just the punch line, there is also a TL;DR version of this:
Oh, if you want just the punch line, there is also a TL;DR version of this:
http://softwareonastring.com/2014/10/18/tldr-version-of-name-value-pairs-in-comboboxes-and-kinfolk
http://softwareonastring.com/2014/10/18/name-value-pairs-in-comboboxes-and-kinfolk
http://softwareonastring.com/2014/10/18/tldr-version-of-name-value-pairs-in-comboboxes-and-kinfolk
http://softwareonastring.com/2014/10/18/name-value-pairs-in-comboboxes-and-kinfolk
My favorite way is to use a method called AddItem .
ReplyDeleteit allow you to add a pair of item .
eg:
ComboBox1.AddItem('Jansen', TObject(100));
{ Reading data }
Value := Integer(ComboBox1.Items.Objects[ComboBox1.ItemIndex]);
Mahdi Safsafi But don't use it in NEXTGEN
ReplyDeleteAlexander Sviridenkov of course :)
ReplyDelete