Combo Box: ID & String Pairs?



The documentation for GTK2::combo simply says:

$combo->set_popdown_strings (...)

where ... is a list of strings.

Does this mean that you can't have a combo box with ID & string pairs? I'm populating my combo from a database, and it would be great if I could have the combo's value set to an ID ( a primary key ) while displaying the associated text.

Dan

--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: dkasak nusconsulting com au
website: http://www.nusconsulting.com.au
Title: CanIt Vote for ID 38056

The following links have been placed here by the NUS Consulting internal spam filter and are for use by NUS Consulting staff only.
Please ingore these links.
Spam
Not spam
Forget previous vote


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]