Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use ! (.NOT.) in the ControlSource?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01163070
Message ID:
01163085
Views:
8
>>>If I specify entry in ControlSource of a check box to
>>>
>>>!MyView.MyField
>>>
>>>
>>>I get "Control is ReadOnly" when clicking on this check box.
>>>
>>>Is there a way to use ! or Not in the ControlSource?
>>>
>>>Thank you.
>>
>>ControlSource is the source of data to which checkbox control is bound.
>>Just curious, how it can be "NOT something"?
>
>Yuri,
>
>I have a field USAAddress which is by default .F. On the form I want to show the check box with caption "International".

In that case, why not reverse the column during editing when the cursor (or whatever) is built for binding... such as Column name = "IntlAddress" which is default .t., so when checked, it properly shows and reflects... at the end of the editing, you could just do something like

replace USAAddress with NOT IntlAddress for (whatever cursor / condition) etc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform