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:
01163073
Views:
9
This message has been marked as the solution to the initial question of the thread.
Dmitry,

You'll need to unbind the control and provide your own logical binding. I typically stash this.ControlSource to a custom property, and then set ControlSource = "" in the Init() method, and then use the Refresh() and Valid() methods to provide the translations.
* untested code off the top of my head for illustration

* Init
this.cControlSource = this.ControlSource
this.ControlSource = ""

* Refresh
this.Value = ! eval( this.cControlSource)

* Valid
replace (this.cControlSource) with ! this.Value
>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?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform