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:
01296454
Views:
8
Are you returning false from Valid method of the previous control? Or do you have some code in its LostFocus preventing it from losing the focus?


>I did what you said and the messagebox never came up upon clicking on the CANCEL button. This is why I am so puzzled; it doesn't seem to be anything obvious. You can tell that I am clicking on it, yet nothing happens. In fact, the cursor seems to jump up to the first object on the form and that's where it sits. I think I need some good VFP old guy counseling.
>
>
>MESSAGEBOX("I am Clicked!", 0, "Clicked")
>SET STEP ON
>WITH ThisForm
>   .lEditing = .F.
>   .Revert()
>   .saveButton.Enabled = .F.
>   .IsDeleted()
>   .Disable_Page1()
>   .lblModeStatus.Caption = "VIEW MODE"	&& Tells user what mode he is in.
>   .Show_Specs()
>   .CountRecs()
>ENDWITH
>This.Enabled = .F.
>WITH ThisForm.cpageframe1
>   IF .activepage=1
>      .cPage1.newButton.Enabled = .T.
>      .cPage1.grdCerts.SetFocus()
>   ELSE
>      .cPage2.ws1TextBox.SetFocus()
>   ENDIF
>ENDWITH
>
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