Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numeric value from a combo box in a grid
Message
 
 
To
27/04/1998 18:08:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00095252
Message ID:
00095254
Views:
21
>>I am using VFP3.0b for Windows.
>>
>>I have a combo box that returns a numeric value into a numeric field of a table. Not unexpectedly, the value that is stored into the field is the recno of the cursor not the bound value.
>>
>>Example: if 999 is the 15th value, then 15 is stored into the table.
>>
>>I have come across this is 2.6 and 3.0 before.
>>
>>How do I write the proper value into the field?
>
>There was an addition in Visual FoxPro 5 to allow us to bound a numeric field in a combo box. In Visual FoxPro 3, a workaround has to be done.

That's unfortunate. I tried:

REPLACE mytable.myfield WITH THIS.VALUE

but THIS.VALUE already seemed to have recno stored in it even though the combo box displays the proper value. Any idea where the proper value is stored or how to access it (other than using a GOTO N in the cursor). It has to be stored somewhere since it is displayed on the screen.

P.S. Congrats.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform