Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox click - how to prevent changing the value?
Message
 
 
To
09/07/2010 12:19:58
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01471953
Message ID:
01472022
Views:
42
>Maybe I don't understand the problem.
>
>You have a checkbox. When the user clicks the checkbox you want to execute a piece of code but you don't want the value of the checkbox to change.
>
>I tried this
>*Checkbox.When
>this.click()
>return .F.
>
>*Checkbox.Click
>messagebox("Checkbox Clicked")
>
>alternatively
>*Checkbox when
>messagebox("Checkbox Clicked")
>return .F.
>
>both displayed the messagebox without changing the value of the checkbox.

See my reply to Gregory Message ID: 1472014 to understand the problem. So far, nothing worked as I wanted it to.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform