Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best approach for listbox on values
Message
From
28/07/2002 16:11:48
 
 
To
11/07/2001 23:03:42
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00529536
Message ID:
00683375
Views:
38
I know what you are trying to do. Often the data shown is not what is stored in the table. I use arrays for my listbox and include an extra column (not displayed) to contain the key value. The listbox array is loaded by the init method and the validate method creates keys for new data entered. A listbox property is set to the column number that contains the key and an line has to be added to the save operation to get the listbox key value.

My listbox class has a few other methods for house keeping, I've used this approach for years.
Previous
Reply
Map
View

Click here to load this message in the networking platform