Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When of checkbox fires after Click
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01472057
Message ID:
01472085
Vues:
44
>
>*** 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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform