Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: Function Index > E

ENVVAL

Scroll Prev Top Next More

(ENVVAL('environmentvar'))

 

Returns the current value of the specified DOS environment variable. You must either enclose the name of the environment variable in quotation marks or use a text variable to which you have assigned the environment variable.

 

First, assume you have the command below in your AUTOEXEC.BAT file.

 

SET workstat=10

 

Now, in R:BASE, you can use ENVVAL to find the value of that environment variable, as shown in the example below. The value of vworkstat will be the text value 10.

 

SET VAR vworkstat = (ENVVAL('workstat'))