2 format variables – KERN & SOHN KET-TM User Manual
Page 184

184
KEN-TM / KET_TM-BA-e-1420
19.2 Format variables
The user has the option to format randomly any number variables and text variables
that can be displayed as an expression or information in the working area of the display.
Types of formatting:
Left-justified alignment
Right-justified alignment
Number of characters in printout / display
Number of decimal places for number variables
Date / time format
Display of number variables in the form of code EAN13
Display of number variables and date in the form of code EAN128
Definition of format:
All format elements have the following pattern and comprise the following components:
{ variable number }
{ variable number
,field width }
{ variable number
:format character string}
{ variable number,field width
:format character string}
Curly brackets ("{" and "}") are required.
Alignment component
The component alignment represents an integral number with sign, specifying the
desired formatted field width. If the value for alignment is less than the length of the
formatted character string, alignment will be ignored and the length of the formatted
character string will be used as field width. Formatted data in the field is presented right-
justified when the value for alignment is positive and left-justified when the value for
adjustment
is negative. If fill characters are required, use spaces. A comma is required
when stating alignment.
Format character string component
The optional component format character string describes how the specified variable is
issued in a formatted form. It may contain the following details:
Specify a default or user defined numeric format character string if the corresponding
object is a numeric value. Specify a default or user defined format style sheet for date
and time. Specify the corresponding string. The general format identifier ("G") will be
used if no format character string has been specified. A colon is required when
specifying the format character string.