Let's assume "DateBuffer" would be an initialized buffer, the calls would be easy as (without error checking):
lExpr = LlExprParse(hJob,"DateToJulian(Date('12/24/2009'))", FALSE) LlExprEvaluate(hJob, lExpr, @DateBuffer, 255) LlExprFree(hJob, lExpr)
The first call builds up a function tree, containing the required formula (here: DateToJulian(Date(‘12/24/2009’)). The second call causes the List & Label formula parser to evaluate the given formula and return the result in “DateBuffer”. The third call frees the memory used up by the function tree.
In this way, many complicated (or less complicated) tasks can easily be passed on to List & Label’s formula parser.