Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sorted Combo box with ControlSource problem
Message
From
25/02/1999 10:49:36
 
 
To
25/02/1999 10:25:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00191414
Message ID:
00191444
Views:
15
Thanks for your response.

Perhaps I wasn't as clear as I might be about the actual problem.

With the BoundTo value set to .F., the default, "the Value property is (automatically) determined by data type of the variable or field specified in the ControlSource property." I'm not getting a data type mismatch -- so the control is properly detecting the numeric field it's bound to. That doesn't seem to be the issue.

The problem is that I'm getting the location in the array as a return value. That's fine if the query returns values in nCode order -- because the nCode value and the index for the value in the combo box array match. However, when the query is sorted by cDescription, the nCode values no longer match the combo box array index. I want to return a value that I assign, rather than the index into the combo box array for the selected value.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform