Re: errorlevels

 BBS: Inland Empire Archive
Date: 12-23-92 (15:17)             Number: 391
From: GEOFFREY LIU                 Refer#: NONE
  To: TONY ELLIOTT                  Recvd: NO  
Subj: Re: errorlevels                Conf: (2) Quik_Bas
 GL> DEF SEG = 0
 GL> ErrorLevel% = PEEK(&H4FE)

TE>That doesn't work for me. 0:4FEh is the next to last byte in the
TE>intra-application communication area. This is a 16 byte block of memory
TE>is set aside specifically for the use by application programs...not
TE>DOS. If a program's errorlevel is being plugged in there, it's got to
TE>be the program itself doing it, not DOS. That makes it pretty
TE>unreliable. FWIW... Tony

        After actually checking with a Reference guide, you're right. I
guess that's the last time I'm posting routines that I haven't tried
yet. <G> To All that captured the routine, please DELETE it, it does NOT
work. Thanks for pointing it out to me (and the other people who pointed
it out too).

                   Happy Holidays, Geoff.
 * DeLuxe* 1.26b #11507 * Paul Harvey fans always have a good day
--- FidoPCB v1.3 [ff053/x]
 * Origin: Canada Remote Systems, Mississauga, Ontario  (1:229/15)
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