Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selected combo box value
Message
From
30/11/1996 12:03:16
 
 
To
30/11/1996 11:59:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00013857
Message ID:
00013866
Views:
30
>I have a combo box with department names and numbers, the number
>of course being the bound column. When the user makes a selection
>I need to receive from the Combo box not only the number, which
>I can get using the box's value, but also the name which is in the
>next column. Both data items are needed to populate an array.

If you want to bound a numeric value, which is the case, you need to set the BoundTo property to .T. otherwise VFP will try to match the index of the list instead of the bound column.

So, this mean that when you'll skip and skip -1 in your form, this combo box should reflect the actual value coming from the bound column.

Now, I am not excatly sure why you need to populate an array. Normally, we will use RowSource='SELECT description,key FROM file ORDER BY 1 INTO CURSOR TEMP', RowSourceType='SQL', BoundColumn=2 and BoundTo=.T.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform