Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CANCEL Button code never executes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01296297
Message ID:
01296299
Vues:
9
>I keep going in circles wondering why my cancel button does not execute any of its codes, unless there has been a change to the data.
>
>The cancel button does execute if there has been a change and I then want to CANCEL the change.
>
>I disable all textboxes and comboboxes in the Init and keep them all disabled until the user clicks on the EDIT button, which enables all of those controls; if I make no changes, I expect that clicking the CANCEL button will execute the following code, but it does not:
>
>
>* None of this code executes, unless there has been a change in the data.
>* .cancelButton.Click() event.
>WITH ThisForm
>   .lEditing = .F.
>   .Revert()
>   ThisForm.cpageframe1.cpage1.newButton.Enabled = .T.
>   .saveButton.Enabled = .F.
>   .IsDeleted()
>   .Disable_Page1()
>   .lblModeStatus.Caption = "VIEW MODE"	&& Tells user what mode he is in.
>   .Show_Specs()
>   .CountRecs()
>ENDWITH
>WITH ThisForm.cpageframe1
>   IF .activepage=1
>      .cPage1.grdCerts.SetFocus()
>   ELSE
>      .cPage2.ws1TextBox.SetFocus()
>   ENDIF
>ENDWITH
>This.Enabled = .F.
>
Did you try debugging this code?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform