DataBasic Reference > Statements and Intrinsic Functions > V > VARVAL Function

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.0 ()

VARVAL Function (DataBasic) (M618703+VARVAL_F.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

VARVAL Function

Returns the current value of a variable.

Syntax

VARVAL(variable {, row {, column}})

Syntax Elements

variable A string containing the name of the variable whose value is to be returned. If variable does not evaluate to a string it must be enclosed in quotes.

row If variable is a dimensioned array, the row number of the required element; if row is not specified, 1 is assumed. This parameter is ignored if the variable is not a vector or a matrix.

column If variable is a dimensioned array, the column number of the required element; if column is not specified, 1 is assumed. This parameter is ignored if the variable is not a matrix.

Operation

The value of an unassigned common variable is indicated by the string "<unassigned>".

The value of a file variable is indicated by the string "<file variable> fileName"

See also the VARTYPE and VARVALTYPE functions and the VARVALSET statement.

RealityV15.0Comment on this topic