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:
00418556
Views:
26
>How do I stop a procedure in the middle of the procedure?

SUSPEND

>
>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.
>

There is no ONCLICK in VFP (it is a DHTML event) so I guess you mean CLICK. IAC, if there is another procedure in the program call stack, that procedure will execute the next line of code after the line that called the CLICK. If the CLICK was initiated by a user event (e.g. user clicking on a button) with no calling procedure, there is nothing to return to so the return just acts to terminate the current procedure.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform