COMPILE_EXPR(1)
PURPOSE
This function will compile an expression that can be used anywhere in your program just as though it had been part of the original program.
PARTS
1 f/c/e | Required - The expression to compile. This must be an A type (alpha) field. The expression can evaluate to any result. |
RETURN TYPE - F
The process returns an F type pointer field.
SEE ALSO
Indirect Field References, COMPILE_SRC()
EXAMPLE
define Filter type f
UserExpr='mid(njob.number,1,2) = "'+testid+'"'
Filter = compile_expr(UserExpr)
scan @file_hndl key @key_num for &filter
...
ends
sample of expression
filter='mid(njob.number,1,2) = "'+testid+'"'
Notice we have to make the expression alpha this was used as a for expression.
Page url: http://www.cassoftware.com/tas/manual/compileexpression().htm