>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao