Left - Monarch 9460 Programmer's Manual

Adk printer
Hide thumbs Also See for 9460:
Table of Contents

Advertisement

L E F T
Purpose
Extracts the left-most character from a string.
Syntax

LEFT

Process
The LEFT command extracts the left-most characters from
them into
The
Length
Rule:
Invalid
Optional Fields
chapter.
Example 1
This example extracts the five left-most characters from SHIP_NO and copies them
to SKU.
LEFT SHIP_NO,SKU,#5
Example 2
This example extracts the NUMCHARS left-most characters from SHIP_NO and
copies them to SKU.
LEFT SHIP_NO,SKU,NUMCHARS
See Also
LSTRIP
MID
RIGHT
RSTRIP
buffer-field1
,
buffer-field2
buffer-field2
.
buffer-field
fields can be one of the following:
Buffer-field1 2
and
Length
INPUT
Logical Field Name
(TEMP1)
Logical Field Name (LU1)
Logical Field Name (PR1)
Logical Field Name
(Field1) [Index]
Buffer-field1
length
and
only:
Number
Buffer-field1
only:
String
must be numeric.
valid labels
and
,
length
[
,
Length
specifies the number of characters.
Description
Input Buffer
Temporary Buffer
Field
Lookup Buffer Field
Printer Buffer Field
Array Buffer Field
Number prefixed by a
number sign (#)
ASCII string delimited
by double quotes
are discussed in "Script Flow" at the beginning of this
[
invalid label
] [
, valid label
buffer-field1
Command Reference 5-53
] ]
and copies

Advertisement

Table of Contents
loading

Table of Contents