Environ$

 BBS: Inland Empire Archive
Date: 06-04-92 (20:47)             Number: 149
From: MATT HART                    Refer#: NONE
  To: JAMES VAHNW                   Recvd: NO  
Subj: Environ$                       Conf: (2) Quik_Bas
 JV> For the life of me I can't get that to work.  Out of Memory or
 JV> something.  CONFIG.SYS-   SHELL=C:\DOS\COMMAND.COM /P /E:1024
 JV>                          BUFFERS=43
 JV> 2 megs of ram...          FILES=20

 JV> 'environ.bas
 JV> ENVIRON "FLAG=2"
 JV> END

Hmmmm....  Might have to call MS on that one.  It seems that ENVIRON doesn't
quite work as advertised.  You CAN alter existing
parameters.  BASIC sees the amount of environment space
USED upon entry, and allocates ONLY that amount for
alterations.  You can do this:

C:\>SET DUMMY = XXXXXXXXXXXXXXXXXXXXXXXXX

ENVIRON "DUMMY="                           ' release dummy's space
ENVIRON "NEWONE=Here's something else!!"   ' fill in dummy's space!


---
 * Origin: Midnight Micro!  V.32/REL  (918)451-3306 (1:170/600)
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