function getValues(classname, attrname) { cmd := "select x." + attrname + " from " + classname + " x"; return (eval cmd); }
General Information | |
Operator | eval |
Syntaxe | eval string |
Type | unary |
Operand Types | string |
Functions | calls the OQL evaluator on the string operand. The string operand can contain any OQL valid construct: an expression, a statement or a sequence of statements. |
Expression Examples | |
expression | result |
eval "10" | 10 |
eval "a := 100" | result is 100; the variable a is set to 100 |
eval "a := \"hello\"; b := a + \"world\"" | result is "hello world"; the variable a is set to "hello"; the variable b is set to "hello world" |
General Information | |
Operator | unval |
Syntax | unval expr |
Type | unary |
Operand Types | any type |
Functions | returns the string expression |
Expression Examples | |
expression | result |
unval 10 | "10" |
unval alpha += 10 - beta + 1 | "(alpha:=(alpha+((10-beta)+1)))" |
eval unval alpha := "hello" | returns "hello"; alpha is set to "hello" |
EyeDB manual