|
History |
.............................................................................. ..............................................................................
} }
{seealso {seealso
[../../comp/gb.eval/expression] [../../comp/gb.eval]
} }
.............................................................................. ..............................................................................
Context["Y"] = "Gambas" Context["Y"] = "Gambas"
PRINT Eval("X * Len(Y)", Context) PRINT Eval("X * Len(Y)", Context)
<hr>12 --
12
}
{seealso
[../../comp/gb.eval/expression]
} }
.............................................................................. ..............................................................................
Evaluates an expression and returns its value. This expression can use almost Evaluates an expression and returns its value. This expression can use almost
The optional context is a collection that must contain the value of each unde The optional context is a collection that must contain the value of each unde
{example {example
DIM Context AS New Collection DIM Context AS New Collection
.............................................................................. ..............................................................................
{syntax {syntax
_Variant_ *= Eval (* _Expression_ [ *,* _Context_ ] *)* _Value_ *= Eval (* _Expression_ AS String [ *,* _Context_ AS Collection ] *)*
} }
Evaluates an expression and returns its value. This expression can use almost Evaluates an expression and returns its value. This expression can use almost
The optional context is a collection that must contain the value of each unde The optional context is a collection that must contain the value of each unde
{example {example
DIM Context AS New Collection DIM Context AS New Collection
.............................................................................. ..............................................................................