1
1
Fork 0
mirror of https://github.com/DualBrain/QB64.git synced 2023-11-19 13:10:13 +00:00
QB64-website/wiki/ENVIRON.md
2022-12-24 19:12:43 -06:00

885 B

The ENVIRON statement is used to temporarily set or change an environmental string value.

Syntax

ENVIRON stringExpression$

Description

  • The stringExpression$ must include the environmental parameter ID and the setting:
    • 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.
  • The _ENVIRONCOUNT function returns the number of key/value pairs that currently exist.
  • Any changes made at runtime are discarded when your program ends.

See Also