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 20:32:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00095252
Message ID:
00095398
Views:
23
>Evan,
>
>I think your best bet is to turn it into a character value FOR the Combo, work with it as char., then store it back as numeric when done.
>
>Cheers,
>Jim N
>
>>>>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.

Thats what I have done in the past with other combo boxes. But now when I try to change the CONTROLSOURCE for this combo box, I get the error "Parent Object will not allow this property setting for formset1.MRSASAVE.grdTest.cHotspot.Combo1.Controlsource"

Any ideas what could be causing this?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform