Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CANCEL Button code never executes
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01296297
Message ID:
01296441
Views:
6
>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
>
That's weird. In your new button put messagebox('I am clicked!) at the top of the click event. Do you see it when you click on the button without making changes?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform