Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numeric value from a combo box in a grid
Message
 
 
To
28/04/1998 11:11:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00095252
Message ID:
00095508
Views:
26
>>>>>>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?
>>>>>
>>>>>Use unbound combo.
>>>>
>>>>Can't do that in VFP3.
>>>
>>>Nope, You can do it. Unbound combo means combo with empty ControlSource property.
>>
>>Sorry.
>>
>>When I try to change the controlsource to a variable or blank I get the following error:"Parent Object will not allow this property setting for
>> formset1.MRSASAVE.grdTest.cHotspot.Combo1.Controlsource"
>>
>>Any ideas what could be causing this?
>
>As long as Column has controlsource you cannot reset controlsource for its control. Actually, in a case of grid it would be more appropriate to use bound combo with Char field.

Ahh... Got it. Thanks Ed.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform