Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cancel button releases form, but running proc continues.
Message
From
08/02/2002 16:39:44
 
 
To
08/02/2002 16:34:40
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00617682
Message ID:
00617720
Views:
20
The code in the procedure to trap for escape is the problem. There are actually almost 20 little procedures that are called from the menu and I would have to put it in everyone. The procedure is run under FPD26 AND VFP7 so I have to enclose everthing inside of #IF 'VISUAL' $ UPPER(VERSION())
to make it safe to run under both versions which is why I really don't want to do too much coding to trap for the escape key. However, the rest of the app traps for escape and returns to the calling program so I would like the same function. It works in FPD26 because a screen is run instead of a form, but in VFP7 of course the form is open. The cancel button effectively cancels the form and I release all other objects that I created, but of course the procedure still keeps running. I'll test it with the cancel on the cancel button set to .f. and see if I can grab the escape coding and post it.
Tracy

>And another question :)
>
>What code do you use in the process to trap for escape? Is it all in one place, and can you post it?
>
>>Hi Steve,
>>Thanks for replying! I would like the process to STOP AND the form to be released. Preferably the process would stop first and then the form would release (that would help prevent any references to the form from bombing also). Right now the form releases, but the process continues. Then after I click to continue on all error messages that are generated from the process continuing (it references the form that was released) it exits as it should.
>>
>>Yuck!
>>Tracy
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform