Syntax:
INT LlExprEvaluate (HLLJOB hJOB, HLLEXPR lpExpr, LPTSTR lpBuffer, UINT nBufferSize);
Task:
Evaluates an expression.
Parameter:
hJob: List & Label job handle
lpExpr: The pointer returned by the corresponding LlExprParse()
lpBuffer: Address of buffer for calculated value
nBufferSize: Maximum number of characters to be copied
Return Value:
Error code
Hints:
The buffer is always filled with a zero-terminated string.
Depending on the type of result, the buffer contents are to be interpreted as follows:
Type |
Meaning |
LL_EXPRTYPE_STRING |
The buffer contents are the result string |
LL_EXPRTYPE_DOUBLE |
The buffer contents are the corresponding representation of the value, for pi e.g. "3.141592". The value is always specified with 6 decimal places. |
LL_EXPRTYPE_DATE |
The buffer contains the corresponding representation of the Julian value, for example "21548263". |
LL_EXPRTYPE_BOOL |
The buffer contains either the string "TRUE" or "FALSE". |
LL_EXPRTYPE_DRAWING |
The buffer contains the name of the drawing variable/drawing field (!), not the contents. |
LL_EXPRTYPE_BARCODE |
The buffer contains the value which would be interpreted as the barcode. |
See chapter Important Remarks on the Function Parameters of DLLs concerning the buffer return value.
Example:
See LlExprParse
See also:
LlExprParse, LlExprType, LlExprError, LlExprFree