LlExprEvaluate

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