AddLeadingZeros

Inserts zeros at the beginning of a value so the character count equals the number that is specified.

Syntax

bool AddLeadingZeros (strParam)

Parameters

A number n which is the maximum length of the value. Smart parameters are supported.

Returns

False if the parameter you enter is not numeric. Otherwise, True.

Level

Field level.

Details

Adds zeros ("0") to the beginning of the captured value of the current Field object until the total length of the value reaches the maximum n you specify as the parameter.
Example
AddLeadingZeros("10")
2240.00 becomes 0002240.00