Sounding a beep, Padding a number with leading zeros – PSC PT Program Generator User Manual

Page 169

Advertising
background image

Sounding a Beep

User’s Guide

157

Sounding a Beep

To sound a beep on a portable, use an

Output

node with the

Source

option set

to

Constant and

Destination

set to

System.

Figure 128. Output Beep Node

In the constant field, enter the human readable text of one of the following
codes:

You can enter more than one code, for multiple tones. For example,

.+.-.+

sounds a high beep followed by a low beep followed by another high beep.

Padding a Number with Leading Zeros

Many database programs use

fixed-length fields,

which means that values stored

in them must be a given number of characters long. Values with fewer than the
required characters can be “padded” with zeros at the beginning; the value 12,
for example, would appear as

0012. Tip14.scrn, illustrated in

Figure 129

on page 158

uses a combination of

Modify

nodes,

Copy

nodes, and two tem-

plates to pad a number with leading zeros.

Sounds a high beep

Sounds a low beep

.

+

.

-

2342.book Page 157 Thursday, July 22, 2004 8:35 AM

Advertising