Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 5.0 - Problem with Escape to Cancel
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00037381
Message ID:
00037393
Views:
40
The cmds not really activate the cmdbtn. They are setting the properties of the cmdbtn. The only way to activate the btn is run "click event". You can use this cmd "Thisform.cmdCancel.Click". But why don't you simply use "Cancel, Return" or some other cmds to terminate the program.


Sunny

>I have a modal form that has a command button which executes an update routine which is somewhat lengthy. When the cmdProceed command button is "clicked", I set the following code:
>
>Thisform.cmdCancel.Caption = " to Cancel"
>Thisform.cmdCancel.Default = .T.
>
>The cmdCancel button is set Cancel = .T. already. My understanding is that will activate the click method on the Cancel button.
>
>Guess what. . .It doesn't. What did I do wrong.
>
>TIA - Bill
Can you live without the earth?
Please remind that :
"Yung Hung" is my first name;
"Yeung" is my last/family name.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform