Format Function
$Format function applies format string to the first parameter. There are two mandatory parameters:
  1. Any pattern
  2. Format string. The engine supports 'd','u','l','x','I','f', and 's' format strings only.

Example

$Format($Table(ti1,A12),%04d)