Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return from Procedure
Message
 
 
To
19/09/2000 12:24:39
Gerald McKinsey
Keystone Consulting Services, Inc.
Yorktown, Indiana, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00418116
Message ID:
00418154
Views:
28
>How do I stop a procedure in the middle of the procedure?
>
>And here's the twist:
>We're in the ONCLICK even of a form button.
>We're used "RETURN" but the form locks up. We read about what RETURN does, and it states that it returns to the calling program/procedure. But what if there was no calling program/procedure?
>
>I'm guessing the problem is based on what we're returning to, which is a user event. We're in the ONCLICK event of a button. So I guess we're trying to return to "...waiting for customer to click button" phase.
>
>Thanks,
>Dustin

Do you set the form's LockScreen property to .t. somewhere prior to the RETURN? If so, always set it back to .F. before every RETURN in the procedure. Just issuing the RETURN should not lock up the form regardless of how the event was called.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform