Win32Lib; Control; Dropdown; Index and data?
- Posted by ZNorQ <znorq at holhaug.com> Mar 20, 2007
- 473 views
I've got database table content that I want to be presented in a dropdown control. I'm not gonna put inn all the field values in the control, but I need the unique index and the readable information. Example; Databasetable "TBL_PERSON" content; ------------------------------------------- KEY SURNAME FIRST NAME ------------------------------------------- 0001 Olsen Elvis 0002 Jensen Thor 0003 Jordan Jens ------------------------------------------- I want this data to be presented in a dropdown control, with the index hidden, and the full name shown with "SURENAME, FIRST NAME". When the user makes a selection, it is the KEY that is returned, not the name itself. Is this possible? This principle was taken from the dropdown control in MS Access, and I was kinda hoping it would have the same function in Win32Lib. Regards Kenneth / ZNorQ