Re: Libs for the Freq'ed

 BBS: Inland Empire Archive
Date: 03-14-92 (16:19)             Number: 176
From: DICK DENNISON                Refer#: NONE
  To: BOB PERKINS                   Recvd: NO  
Subj: Re: Libs for the Freq'ed       Conf: (2) Quik_Bas
BP>   :-)  No, you didn't miss anything in the manual.  Quite some time ag
BP> someone posted some code here that uses an internal QB function to exi
BP> an errorlevel.  It even works from within the environment (Beware!).
BP> must start qb with /l to load qb.qlb or link with qb.lib for it to wor
BP> have used this several times with no problems, but there are no guaran

BP>   DECLARE SUB ExitWithErrLvl ALIAS "_exit" (BYVAL ErrorLevel%)
BP>   'now that we've declared it we can use it..
BP>   test% = 5
BP>   ExitWithErrLvl test%
BP>   END   ' we'll never get here..


(continuing)

That was Brent Ashly that found that.  Microsoft has officially stated
that it does not support this call, however I use it all the time and
have had no problems with it.

The safest way is to check QBNews 102.

--- VP [DOS] V4.09e
 * Origin: New York Quick Share Point * HST (914)374-3903 (1:272/34)
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