Article View: comp.sys.misc
Article #1900ENVIRON statement in GW-BASIC
From: SAC.96BMW-LGSPP
Date: Thu, 17 Nov 1988 21:37
Date: Thu, 17 Nov 1988 21:37
24 lines
1687 bytes
1687 bytes
While trying to use the ENVIRON statement in a GW-BASIC program that I was going to compile, I noticed some problems...2 to be exact: Problem #1...Environment space kept running out... Solution: Set up an environment dummy variable, and set it to 30 or so bytes, i.e. SET junk=123456789012345678901234567890 before calling your program, and set it to 0 bytes in the program.. This is because Compiled BASIC will only reserve an exact copy of the DOS environment if you are using the SHELL command..So you must not use more memory in the child DOS than existed in the DOS you called the program from. Problem #2...ENVIRON is CASE-SENSITIVE the first time you use it... Weird, but true...If you want to change a DOS var...Use CAPITAL letters everytime...to avoid possible problems.. i.e. ENVIRON "PROMPT=$p$g" Hope I helped someone out there.... :) +-----------------+-------------------------------------------------+ | _ __ (TFM) | Richard A. Gautier, Airman First Class, USAF | | ' ) ) / | ARPA: SAC.96BMW-LGSPP@e.isi.edu | | /--' o _. /_ | Work: 915-696-4946 Play: 915-695-3406 | | / \_<_(__/ /_ | Programmers never die, they just get debugged! | +-----------------+-------------------------------------------------+
Technical Details
Message-ID:
<[E.ISI.EDU]17-Nov-88.15:37:43.SAC.96BMW-LGSPP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!hplabs!ucbvax!E.ISI.EDU!SAC.96BMW-LGSPPShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!hplabs!ucbvax!E.ISI.EDU!SAC.96BMW-LGSPP From: SAC.96BMW-LGSPP@E.ISI.EDU Newsgroups: comp.sys.misc Subject: ENVIRON statement in GW-BASIC Message-ID: <[E.ISI.EDU]17-Nov-88.15:37:43.SAC.96BMW-LGSPP> Date: 17 Nov 88 21:37:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 24