d = getvalue(variable_nameʃ, occurrence1, ..., occurrence3ʅ);
d = getvaluenumeric(variable_nameʃ, occurrence1, ..., occurrence3ʅ);
s = getvaluealpha(variable_nameʃ, occurrence1, ..., occurrence3ʅ);
The
getvalue function returns the value of a variable when the variable name is not known at compilation time (when writing the application). The function searches for a variable with a name stored in the string expression
variable_name, and if such a variable is found, the function returns the value of that variable.
The functions
getvalue and
getvaluenumeric return the value of numeric variables. The function
getvaluealpha returns the value of an alphanumeric variable. Optional arguments,
occurrence1 to
occurrence3, allow you to pass occurrence numbers to the function.
The function returns the variable's value if the variable name was found. If a numeric variable was not found, the functions
getvalue and
getvaluenumeric return
default. If an alphanumeric variable was not found,
getvaluealpha returns a blank string.