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 01:36:46
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:
01471993
Views:
64
>>Hi everybody,
>>
>>I added NODEFAULT and return in Checkbox Click event, but it still changes the value.
>>
>>How can I prevent it?
>>
>>Thanks in advance.
>
>Set it to ReadOnly or Enabled = false

The idea is - if the changes made on the tabless pageframe, I want to ask the user about saving the changes and prevent them leaving the page if they answer Cancel.

I have only 2 other controls on the form - TList ActiveX and a checkbox.

I tried using custom page with nodefault in its Deactivate, but it didn't work. So I'm now trying to put the code in the TList and Checkbox.

I tried using When event of checkbox, but even if I return .t. from when, click is not working...
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