TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: STEVE MCCRYSTAL (Rcvd)
from: DAVID ROPER
date: 1996-06-22 08:42:00
subject: ERRORLEVEL IN PB3.X

SM>>I swear I've looked (and RTFM), but if there is a way to set an 
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, so 
I'm sure
  >>a fine compiler like PB must have an equally simple procedure.
   Sure.  Just do this to end with errorlevel = 12
   END 12
      or if 12 is a variable A
   END A
      or if 12 is calculated from multiplying J*3
   END J*3
      etc.
   P.S.  use the F1 key in the IDE for HELP, then look up the word END.
       Thass' it.  Good luck.  Glad to help.   Peace.
         _____oOOo_/00\_oOOo_____      david.roper@mms.raleigh.nc.us
     1996          \__/            201 WINDING BROOK Dr, GARNER NC 27529
--- FLAME v1.1
---------------
* Origin: Full Internet Access $15.00, (919) 779-6674 or MMS.NET (1:151/102)

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