11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GETENV<br />

Syntax<br />

GETENV(var | "envir.var")<br />

Description<br />

The <strong>UniBasic</strong> GETENV function returns the contents of the UNIX, or Windows<br />

platform environment variable. If you include the environment variable explicitly (as<br />

opposed to including it in a variable), you must enclose it in quotation marks.<br />

Examples<br />

In the following example, the program statement retrieves the value of UDTBIN in<br />

X:<br />

X = GETENV("UDTBIN")<br />

In the next example, the program retrieves the value of UDTBIN in X, but uses a<br />

variable to define UDTBIN:<br />

VAR = "UDTBIN"<br />

X = GETENV(VAR)<br />

1-293

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!