2011-03-29
Dismiss this until next updateThis documentation has been updated

The latest version of PrintShop Mail is currently 7.1. This documentation was updated on 2011-03-29 and covers the changes made in this version. If you are still using an older version of PrintShop Mail, you can access its documentation by using the Version: menu at the top-right corner of this screen.

If you wish to upgrade to PrintShop Mail7.1, you can do so via the Upgrade Request page. Note that in order to upgrade, you will need a valid OL Care contract as of 2010-09.

COUNTER

Syntax

COUNTER([Start value][,End value] [,Step size] [,Number of positions] [,Leading zeroes])

Description

A counter which by default counts from the first to the last record. Arguments are optional.

Example

COUNTER (1,100)

COUNTER (1,100, 5, 3, True)

COUNTER (1, 100, 0.5, 3, False)

COUNTER()

Parameter description

Start value

The start value of the counter. Default 1 .

End value

The end value of the counter. Default 10000000000.

Step size

The step size to the next number. Default 1.

Number of positions

The number of characters the counter will create. By default no extra characters will be added. Default 0.

Leading zeroes

True for leading zeroes, False for no leading zeroes (default).

You can use a counter when printing tickets or numbering your mailing. You do not need to open a database within PrintShop Mail when using a COUNTER, if this is the only variable.

The first example creates numbers, starting with 1 and ending with 100. As you browse through the fields of the database, the series is as follows:

1, 2, 3, 4, ..., 99, 100, 1, 2, 3, ...

The counter restarts once it has reached 100.

The series generated by the second example looks like this:

001, 005, 010, ..., 090, 100, 005, 010, ...

The parameters step size, number of positions and leading zeroes have been added.

The third example has a fraction for the step size. This means that the counter increases by 0.5.

1, 1.5, 2, 2.5, 3, ..., 99.5, 100, 100.5, ...

The last example, COUNTER() starts with 1 and ends at whatever number is set in Items without database (Program settings in the Preferences).