Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When of checkbox fires after Click
Message
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:
01472057
Message ID:
01472085
Views:
43
>
>*** GotFocus Event
>this.Tag = IIF(this.Value,"1","0")
>
>*** Lost Focus
>IF NOT this.Tag == IIF(this.Value,"1","0") ;
>   AND MESSAGEBOX('ok to click?',4,'test') = 7
>       this.Value = (this.Tag == "1")
>ENDIF
>
I solved the problem:

When event:
IF thisform.lMadeChanges AND thisform.AskToSave() = 2       
      RETURN .f.
   ELSE
      this.Value = not this.Value
      this.Click()   
ENDIF
Click event - normal logic.
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