TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: STEVE MCCRYSTAL (Rcvd)
from: STAN HELTON
date: 1996-07-04 13:03:00
subject: errorlevel in pb3.x

Hi Steve,
In a message to All you wrote:
;
;
 SM> I swear I've looked (and RTFM), but if there is a way to set an
 SM> errorlevel/exit code from a PB program, I sure can't find it.
 SM> Would anyone care to share a technique? It's fairly easy in QB/PDS,
 SM> so I'm sure a fine compiler like PB must have an equally simple 
 SM> procedure.
 SM> -[Steve]-
Hello, Steve.
Somebody should have replied by now, but just in case they didn't. You set 
the 
exit/errorcode like this in PowerBASIC:
END errorcode
errorcode can be generated from an error handler within the program.
That's how I do it.
Bye bye!
  Stan
 * SeM. 2.21 UNREG * Well! I'm impressed.
--- PCBoard (R) v15.3/M 10 Beta
---------------
* Origin: (1:373/10)

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