Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox return Row and not the Customers number; WHY???
Message
 
To
05/04/1997 12:00:15
Jean-Pierre Overbeek
New Limit Database Solutions
Amsterdam, Netherlands
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00027142
Message ID:
00027226
Views:
36
>Hello,
>
>I want to allow the users to select a customer using a combobox.
>The customers have an unique identification number, so I want to fill the combo with the customername and the number. If the user selects a customer the combobox returns the combo Row number, and NOT the customersid.
>
>This is a big problem as all my relations work with an identification number!!!
>
>Please help,
>TIA
>
>Greeting,
>Jean-Pierre

Hello Jean-Pierre,

Ran into this before as well. In a ComboBox the Value property returns the value if character but returns the row if numberic. To make the ComboBox return the numeric value set the BoundTo property of the ComboBox to .T. It will now return the identification number chosen. Be careful how you use the Value in code though because the number is returned as a string.

Happy Coding

Colin Magee
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Previous
Reply
Map
View

Click here to load this message in the networking platform