1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-05 11:10:23 +00:00
qb64/internal/help/ENVIRON.txt

28 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-10-10 14:55:21 +00:00
'''This page is maintained for historic purposes. The keyword is [[Keywords_currently_not_supported_by_QB64|not supported in QB64]]. Reading values is supported with [[ENVIRON$]].
2017-10-10 14:55:21 +00:00
----
The [[ENVIRON]] statement is used in DOS/Windows to temporarily set or change an environmental string value.
{{PageSyntax}}
2017-10-10 14:55:21 +00:00
: [[ENVIRON]] {{Parameter|stringExpression$}}
2017-10-10 14:55:21 +00:00
{{PageDescription}}
* [[Keywords_currently_not_supported_by_QB64|Not supported in QB64.]]
* The {{Parameter|stringExpression$}} must include the environmental parameter ID and the setting:
2019-04-15 01:15:33 +00:00
** Using an '''=''' sign: [[ENVIRON]] "parameterID=setting"
** Using a space: [[ENVIRON]] "parameterID setting"
* If the parameter ID did not previously exist in the environmental string table, it is appended to the end of the table.
* If a parameter ID did exist, it is deleted and the new value is appended to end of the list.
2017-10-10 14:55:21 +00:00
* DOS discards any changes when your program ends so the program must set them when run.
* '''WARNING:''' The amount of space in a environmental table is limited and may create memory errors.
2017-10-10 14:55:21 +00:00
{{PageSeeAlso}}
* [[ENVIRON$]]
* [[Windows Environment]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}