TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: LAWRENCE GORDON
from: STEVE MCCRYSTAL
date: 1996-06-23 06:25:00
subject: errorlevel in pb3.x

;
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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.