;
In a msg of , Lawrence Gordon writes to Steve Mccrystal:
;
Lawrence,
SM>> I swear I've looked (and RTFM), but if there is a way to set
SM>> an errorlevel/exit code from a PB program, I sure can't find
SM>> it.
LG> You can set an errorlevel by using the END statement, e.g.:
Apparently I didn't RTFM well enough! :^)
LG> IF FUBAR% THEN
LG> END 255
LG> ELSE
LG> END
LG> END IF
Thanks! That's what I needed - a way to set one of several different
errorlevels.
LG> Hint: look on pages 124 and 125 of the reference manual under the
LG> topic "END statement".
Thanks for the hint as well. FWIW my comment about a 'superior compiler like
PB' was *not* in jest - everything seems simpler in PB than in QB/PDS (except
the much discussed switching to SUB windows). The errorlevel thing sure is!
:^)
My sincere thanks to *everyone* who replied!
-[Steve]-
--- GoldED/2 2.50+/#1057US3
---------------
* Origin: -[Steve's Place]- New Berlin, WI (FidoNet 1:3641/1.202)
|