Re: Error Levels

 BBS: Inland Empire Archive
Date: 09-11-92 (20:03)             Number: 321
From: BOB PERKINS                  Refer#: NONE
  To: LAWRENCE GORDON               Recvd: NO  
Subj: Re: Error Levels               Conf: (2) Quik_Bas
 LG> A few weeks ago, someone posted some information on passing
 LG> an error level on an exit from a QuickBasic program.

  In order for the following to work (at least within the
environment) you need to start QB with "/l" to load qb.qlb.
 Be careful to save your source because this will
immediately exit the environment too!

  DECLARE SUB ErrorExit ALIAS "_exit" (BYVAL ErrorLevel%)
  ErrorExit 20

  Keith Rolland posted another way to exit with an errorlevel awhile back
that was interesting.  If you want, I'll dig it up.


--- Msg V4.5
 * Origin: Reciprocity Failure  (1:124/4115.236)
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