Show TOC

Object documentationFunctions for Variables Locate this document in the navigation structure

 

The following table lists functions for manipulating variable contents:

Functions

Function

Description

~length (%description%)<20

Returns the length of a variable

~left (%description%)

Returns left-most characters

~right (%description%,1

Returns right-most characters

~mid (%description%,start)

Returns characters starting from start

~mid (%description%,start,length)

Returns length characters starting from start

~mask (%variable%, Masking Rule ID)

Hides all or part of a number such as a credit card number on-screen or on a printed form

~unmask (%variable%, Masking Rule ID)

Unmasks and displays all or part of a number such as a credit card number on-screen or on a printed form

~integer (%tender%)

Returns a integer part of numeric variable

~fraction (%tender%)

Returns a fractional part of numeric variable

~value (%tender%)

Removes formatting from a number

~barcode (type,%variable%[%variabl e2%],.5,)

Prints a barcode using the given variables as the value

~clean(%tender%)

Strips non-digit characters from the given variable

~clean(%tender%,6) or

~clean(%expirydate%)

Strips non-digit characters from the given variable. If the number of digits remaining is less than the number given as the second parameter, it pre-fills with zeroes

~words(%tender%, English,integer)dollars

~words(%tender%,English, Fraction) /100

Prints a number in words (English language) and used on the front of a check. For example, the value 12.34 when passed into these two functions results in Twelve dollars and 34/100

~signature (%signature%, size [, format])

Default format unless specified in the format parameter for printing signatures on a receipt.jpg

~form (formname, store)

Specifies the name of a form and whether or not to store it

~graphic(filename,size, store)

Instructs the system to store an image

~pause (milliseconds)

Pauses document processing, for example a pause between slide shows. Can be used on a signature capture device

~absolute(%tender%)

For example, -5 becomes 5, 5 becomes 5

~nocurrency(%tender%)

Removes the currency symbol