Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 5.0 - Problem with Escape to Cancel
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00037381
Message ID:
00037429
Vues:
29
I'm sorry, I read my original thread and I didn't explain myself properly. What I meant to say is that with these settings, if the user presses the key, it will activate the cmdCancel.Click Event. It isn't working. If I try to use code like Set Escape on and On Escape Thisform.cmdCancel.Click(), I get a message that says "THISFORM can only be used in a method."

Any other suggestions? I have tried to click the Cancel button while the program is running but it doesn't respond. Running out of ideas.

TIA,

Bill





>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
CySolutions, Medical Information Technology
You're only as good as your last
success, so . . .If it works. . .don't fix it!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform