General information
Category:
Coding, syntax & commands
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only