Formatting Variables - RADWAG WLY User Manual

Y series
Hide thumbs Also See for WLY:
Table of Contents

Advertisement

44.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 variables from
format strings
-
Minus sign or justification to the
left
:
Proviides formatting or
separates 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.
F
The number is converted to a
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.
V
Formatting mass and
derivatives for EAN13 codes
T
Formatowanie masy i wielkości
pochodnych do masy w kodzie
EAN128
Example
{7,10} – Net mass in adjustment unit situated
in 10-character string justified to the right.
{7,-10} - Net mass in adjustment unit
situated in 10-character string justified to the
left
{7:0.000} - Net mass in adjustment 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
weighments with four decimal places;
{7:F2} - Net mass in adjustment unit always
with two decimal places.
{7,9:F2} - Net mass in adjustment 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.
283

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wpy

Table of Contents