Syntax:
INT LlDefineSumVariable (HLLJOB hJob, LPCTSTR lpszName, LPCTSTR lpszCont);
Task:
Defines a sum variable's contents.
Parameter:
hJob: List & Label job handle
lpszName: Pointer to a string with the name of the variable
lpszCont: Pointer to a string with the contents of the variable
Return Value:
Error code
Hints:
The field content is interpreted as numerical value.
Use of this function usually conflicts with a user who can edit a layout, as the sum variable will not have the value he expects.
Example:
HLLJOB hJob;
hJob = LlJobOpen(0);
<... etc
...>
LlDefineSumVariable(hJob, "@Sum01", "14");
<...
etc ...>
LlJobClose(hJob);
See also:
LlGetSumVariableContents