codeValueExpression (Code Value Expression)

The codeValueExpression property is a PXML string expression value to calculate a page number string, depending on a bar code.

Some enveloping machines use bar codes to collate report pages and place them into envelopes. The code value expression typically encodes the page number and the total number of pages.

In the Properties view, this property is the Code Value Expression property in the Bar Code category.

This is a property of the Bar Code Box, which expects a PXML string expression value to calculate a page number string. When set, the value of the property overrides the codeValue property. The value of the codeValue property is still used for measuring the required space, but if it is not set, the default size is computed from the expression; see calculating the page number string

Type: PXML.

The code expression works similarly to the text expression. See functions and examples in Using a page number string.