BBS: SPOKANE CENTRAL Date: 05-30-93 (23:55) Number: 38 From: GANMAN #31 @1408000 VIRTU Refer#: NONE To: ALL Recvd: NO Subj: Re: Exiting Error Levels? Conf: (18) QuickBASIC
0R: net33: @5912 (via @1042) [07:16 06/02/93] 0R: net33: @6850 (via @6852) [22:54 06/01/93] Re: Re: Exiting Error Levels? [0m [32m> [0m CD#@> Can anyone tell me how to have a QBasic program exit with definable [0m [32m> [0m CD#@> ERRORLevels to be used in a .BAT file??? [0m [32m> [0m I dont think it can, but if you find out let me know. ' Exiting with an errorlevel, for QuickBASIC 3.0 and up, using an ' internal routine DECLARE SUB ExitWithErrLvl ALIAS "_exit" (BYVAL errorlevel%) DEFINT A-Z ' Integer Level = 5 ' Set the errorlevel to 5, as an example ExitWithErrLvl Level ' Set the errorlevel END $$ --- TosScan 1.00 * Origin: Colossus - The Columbus Computer Society - Columbus, OH (1:226/120)
Books at Amazon:
Back to BASIC: The History, Corruption, and Future of the Language
Hackers: Heroes of the Computer Revolution (including Tiny BASIC)
Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution
The Advent of the Algorithm: The Idea that Rules the World
Moths in the Machine: The Power and Perils of Programming
Mastering Visual Basic .NET