Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

GETENV

Description

All processes have an environment associated with them that contains a number of variables indicating the state of various parameters. The GETENV function allows a program to determine the value of any of the environment variables associated with it. It takes the general form:

 GETENV(expression, variable)

Where:

  • expression should evaluate to the name of the environment variable whose value is to be returned.
  • The function will then assign the value of the environment variable to variable.

The function itself returns a boolean TRUE or FALSE value indicating the success or failure of the function.

An example of use is as:

0001     IF GETENV("CLASSPATH", ClassPath) THEN
0002         CRT "CLASSPATH path is ":ClassPath
0003     END ELSE
0004         CRT "CLASSPATH is not set up"
0005     END


Go back to jBASE BASIC.

Was this article helpful?