Re: Errorlevels

 BBS: Inland Empire Archive
Date: 07-29-92 (08:29)             Number: 108
From: JIM COYLE                    Refer#: NONE
  To: JOEY SHAW                     Recvd: NO  
Subj: Re: Errorlevels                Conf: (2) Quik_Bas
In a message to All <07-22-92 11:09> Joey Shaw wrote:

JS>> Is there any way to exit with en errorlevel in a QB program? If so,
JS>> please post
JS>> some example code...

Sure is! It's REAL simple. All you have to do is declare a sub...

DECLARE SUB ExitWithErrLvl ALIAS "_Exit" (BYVAL ErrorLevel%)

There thats it. Now to exit with an errorlevel just do this.
ExitWithErrLvl 5
That exits with errorlevel 5! See, pretty easy huh! See ya!
                                               Jim Coyle

--- QuickBBS 2.76 Ovr (Gamma-2)
 * Origin: NePa BBS  (1:268/202)
Outer Court
Echo Basic Postings

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