Syntax:
INT LlDefineVariableExt (HLLJOB hJob, LPCTSTR lpszName, LPCTSTR lpszCont, INT lPara, LPVOID lpPara);
Task:
Defines a variable and its 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
lPara: Variable type (LL_TEXT, LL_NUMERIC, ...)
lpPara: For future extensions, must be NULL.
Return Value:
Error code
Hints:
Please note the general hints in the section "Variables and Fields in List & Label".
This function can be mixed with the other LlDefineVariable...()-functions.
The variables predefined by List & Label are listed within the description of LlDefineVariable().
Example:
hJob =
LlJobOpen(0);
LlDefineVariableStart(hJob);
LlDefineVariableExt(hJob,
"City", "Washington", LL_TEXT, NULL);
LlDefineVariableExt(hJob, "ZIP
Code", "*90206*",
LL_BARCODE_3OF9, NULL);
LlDefineVariableExt(hJob, "Photo", "i.bmp",
LL_DRAWING, NULL);
LlJobClose(hJob);
See also:
LlDefineVariableStart, LlDefineVariable, LlDefineVariableExtHandle, LlGetVariableContents, LlGetVariableType