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?

ASSIGNED

Description 

The function returns a Boolean TRUE or FALSE result depending on whether or not a variable has an assigned value.

ASSIGNED(variable)

Where variable is any variable declared in the program.

ASSIGNED returns TRUE if the variable named has an assigned value (even an empty string) before the execution of this statement. If the variable has no assigned value then the function returns FALSE.

Note:

Provision of this function is due to its implementation in older versions of the language. It is advised to program in such a way so as to avoid using this statement.

Example:

001     IF ASSIGNED(record) THEN
002         CRT "The variable 'record' has been assigned a value."
003     END ELSE
004         CRT "The variable 'record' has NOT been assigned a value."
005     END


See also: UNASSIGNED

Go back to jBASE BASIC.

Was this article helpful?