Using contents mask, Work with visual basic expressions – QuickLabel Designer Express User Manual

Page 87

Advertising
background image

- 87 -

following notation is   used:

h

Hours in 12-hour format (AM/PM will be added if they follow the time). Can
occupy one or two characters.

hh

Hours in 12-hour format (AM/PM will be added if they follow the time). Always
occupies two characters. (leading zeros will be added as necessary).

H

Hours in 24-hour format. Can occupy one or two characters.

HH

Hours in 24-hour format. Always occupies two characters.

mm

Used for minutes.

ss

Used for seconds.

 

The examples:

Format

How the time will look

h:mm {AM/PM}

8:25PM

H:mm

20:25

hh:mm:ss

08:25:36

Using Contents Mask

Contents mask is very useful when you must display the input data differently   on the label. With con-
tents mask you can simply reformat the data to suit   your needs.

For example, you must use differently formatted human interpretation   text below bar code than the 
data is formatted in the bar code. You do   not want to define two variables for this purpose and enter 
the similar   data twice.

The mask character will be replaced by the actual data and any other   used character will be used as-
is. If the current bar code value is

"AD951"

and the contents mask is

"**C - ** /*/"

the resulting output will be

"ADC - 95 /1/"

Powerful formatting structures can be defined using Contents mask, but   it is only available with bar 
codes that allow custom formatting of the   human interpretation. You should also make sure to print 
bar codes as   graphics, otherwise the contents mask is not available.

Note:
 If your data contains the asterisk "*" character, then you will   have to change the default mask char-
acter to something else. It should   be a unique value, not appearing anywhere in the data.

The contents mask functionality is available with Text and Bar code   objects.

Work with Visual Basic Expressions

Visual Basic expressions allows you to manipulate the data values on   the label. Input to Visual 
Basic can be fixed values or variable fields   from the label. The output is always a data value that is 
used as content   for the current object.

Advertising
This manual is related to the following products: