Formatting Variables - RADWAG WPY User Manual

Hide thumbs Also See for WPY:
Table of Contents

Advertisement

39.2. Formatting variables

Users can format numeric, text and date variables intended for displaying
or printing out.
Different format commands:
• Justification to the left,
• Justification to the right,
• Setting the number of characters for printout / display,
• Declaration of the number of digital places for numeric variables,
• Date&Time formatting,
• Formatting numeric variables for EAN13 codes,
• Formatting numeric variables and dates for EAN128/GS1-128 codes.
Format characters:
Character
Description
Separates veriables from
,
format strings
Minus sign or justification to the
-
left
Precides formatting or
:
sepatates hours, minutes and
seconds
The first dot in the format string
.
determines the location of the
decimal separator in the
formatted value; any additional
dot characters are ignored.
The number is converted to a
F
string of the form "-ddd.ddd..."
where each 'd' indicates a digit
(0-9). The string starts with a
minus sign if the number is
negative.
Formatting mass and
V
derivatives for EAN13 codes
Formatowanie masy i wielkości
T
pochodnych do masy w kodzie
EAN128
Example
{7,10} – Net mass in calibration unit situated
in 10-character string justified to the right.
{7,-10} - Net mass in calibration unit situated
in 10-character string justified to the left
{7:0.000} - Net mass in calibration unit
always with three decimal places ;
{3:hh:mm:ss} – Present time in the format :
hours : minutes : seconds
{55:0.00} – Unit price always with two
decimal places;
{17:0.0000} – Average value form weighings
with four decimal places;
{7:F2} - Net mass in calibration unit always
with two decimal places.
{7,9:F2} - Net mass in calibration unit always
with two decimal places in 9-character string
justified to the right.
{7:V6.3} - Net mass for EAN13 (6-character
code) with three decimal characters
{7:T6.3} – Net mass for EAN128/GS1-128
with two decimal places.
171

Advertisement

Table of Contents
loading

Table of Contents