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:
01296436
Vues:
7
I understand what you are saying, Naomi. It seems that way. This is already a separate button; I thought it was because the button was a sub-classed button that that might be why it didn't work, so I just got a plain commandbutton and placed it there with all the necessary code.

Again, the code fires, if there has been any change to the data, but if there is no change to the data and I click on the CANCEL button, the code does not ever fire. I set the ENABLED property to .T. upon clicking on my EDIT button. Notice below code:
WITH ThisForm
   .lEditing = .T.
   .lblModeStatus.Caption = "EDIT MODE"	&& Tells user what mode he is in.
   .Enable_Page1()
   .CancelButton.Enabled = .T.
ENDWITH
>>Yes, I did, but the code never stopped inside of the Cancel.click event even though I put a SET STEP ON command there.
>>
>>>Did you try debugging this code?

>Try to create a separate button on the form and move the code from the old button's Click there.

>It looks like your Cancel button may have When method returning .f. or be disabled and therefore not firing the click method.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform