home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / basic / environ.inf < prev    next >
Internet Message Format  |  1994-03-07  |  1KB

  1. Date: Thursday, 17 November 1988  14:37-MST
  2. From: SAC.96BMW-LGSPP at E.ISI.EDU
  3. To:   INFO-MICRO
  4. Re:   ENVIRON statement in GW-BASIC
  5.  
  6.    While trying to use the ENVIRON statement in a GW-BASIC program that
  7. I was going to compile, I noticed some problems...2 to be exact:
  8.  
  9. Problem #1...Environment space kept running out...
  10.  
  11.   Solution:   Set up an environment dummy variable, and set it to
  12.   30 or so bytes, i.e. SET junk=123456789012345678901234567890 before
  13.   calling your program, and set it to 0 bytes in the program..
  14.   This is because Compiled BASIC will only reserve an exact copy of
  15.   the DOS environment if you are using the SHELL command..So you must
  16.   not use more memory in the child DOS than existed in the DOS you called
  17.   the program from.
  18.  
  19. Problem #2...ENVIRON is CASE-SENSITIVE the first time you use it...
  20.    Weird, but true...If you want to change a DOS var...Use CAPITAL
  21.    letters everytime...to avoid possible problems..
  22.    i.e. ENVIRON "PROMPT=$p$g"
  23.   
  24. Hope I helped someone out there....    :)
  25. +-----------------+-------------------------------------------------+
  26. |   _ __   (TFM)  | Richard A. Gautier, Airman First Class, USAF    |
  27. |  ' )  )      /  | ARPA: SAC.96BMW-LGSPP@e.isi.edu                 |
  28. |   /--' o _. /_  | Work: 915-696-4946  Play: 915-695-3406          |
  29. |  /  \_<_(__/ /_ | Programmers never die, they just get debugged!  |
  30. +-----------------+-------------------------------------------------+
  31.