Swapping to disk/EMS

 BBS: Inland Empire Archive
Date: 11-23-92 (14:49)             Number: 348
From: JOHN GALLAS                  Refer#: NONE
  To: DAVID PIFKE                   Recvd: NO  
Subj: Swapping to disk/EMS           Conf: (2) Quik_Bas
DP>Also, how do you set the errorlevel a program exits with.. I know it's a
DP>call to the OS (although I don't know whether it uses POKE, or INTERRUPT,
DP>or where to POKE/what INTERRUPT and registers).

' you have to load QB.QLB (use the /L switch) and then..

' ERRLVL.BAS  Will exit from a QuickBASIC EXE with the given errorlevel.

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

'... and put this line right before you exit.

  ExitWithErrLvl 5
  END

 * OLX 2.1 TD * My compiler has a first name, its Q-U-I-C-K..
--- RyPacker v2.5b
 * Origin: The Ghost Mode - An RyBBS System!  (612)-688-0026 (1:282/3006)
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