>Data validation techniques have evolved dramatically over the years in xBase languages.
>In VFP I find there are many ways to get the job done.
>What is the proper (Hmm.. Is proper the simplest, cleverest or most elegant?) way to select from a dropdown list a valid selection? I am trying to use a combo box populated with a cursor of valid selections. The cursor is multi column with the “Description” visible to the user while in the background I want to use the second column (key value of selection) to populate the field of my table. The description is all that is visible to the user.
>I have not been successful in finding examples of this approach.
>
>Any suggestions will be greatly appreciated.
>
>Gary De Lecce
The simple way would be to use MyCursorName.MyFieldName for your value. Alternatively you can use value of the combobox.
If it's not broken, fix it until it is.
My Blog