TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ERIC SCHONNING
from: STAN HELTON
date: 1996-07-04 13:03:00
subject: Re: errorlevel in pb3.x

Hi Eric,
In a message to Steve Mccrystal 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
 SM>> QB/PDS, so sure a fine compiler like PB must have an equally 
 SM>> simple
 SM>> procedure.
 ES> Well I'm sure the PB method is even easier than the QB/PDS method.
 ES> Its just END #, where # is the errorlevel you want to set on exit.  
 ES> For example,  END 5   will set errorlevel 5 on exit.  I don't 
 ES> remember it being so easy in QB?  and never used PDS...     Eric
Hi Eric.
I never used QB, but I seem to remember that it works the same in PDS as in 
PowerBASIC.
Bye bye!
  Stan
 * SeM. 2.21 UNREG * My reality check just bounced.
--- 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™.