beautypg.com

Fields, For mor – PSC PT Program Generator User Manual

Page 99

background image

Fields

User’s Guide

87

1. Create an

Input

node to download a inventory file from the PC to a

portable file.

2. Use second

Input

node to store a scanned part number in a register

named

Part Number.

3. Copy the

Part Number register to a Lookup register.

4. Append

,* to the lookup key (wild card lookup).

5. Lookup

Lookup register against the inventory file.

This assumes that the inventory file is comma delimited, and contains

Part

Number and Quantity fields.

Fields

Fields are a breakdown of data in a single register. Most programs expect to see
related values on the same line. Each line is referred to as a

record,

and each

item on the line is called a

field.

The fields are either set to a fixed length (so that they appear in columns in the
data file), or they are allowed a variable length with a separator (such as a
comma) separating them. You can also use a template to break apart data
stored in a register into separate fields.

To create a new

Field

, select

Create > Data > Field

from the menubar to open

the

Create Field

dialog, shown in

Figure 58

.

Figure 58. Create Field Dialog

To edit an existing

Field

:

1. Locate the field in the PPG

Explorer

; right-click to open a pop-up

menu.

2. Select

Properties

.

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