Token - Monarch 9460 Programmer's Manual

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

Advertisement

T O K E N
Purpose
Sets a token delimiter or extracts a token-delimited sub-field from a larger field.
Syntax
To set a token delimiter:
To extract a sub-field:
Process
The TOKEN command sets
from
Subsequent calls to this command using the same fields returns the next sub-
string. You must set the delimiter before extracting sub-fields (the default is a
comma).
Character, buffer-field1 and buffer-field2
Optional Fields
Invalid
chapter. The exception is as follows:
Example
This example sets the token delimiter to *. Then, it extracts the strings PAXAR and
CORPORATION from TASOURCE and moves them to the printer's screen one at a
time.
*GETTOKEN
*DONE
5-82 Command Reference
TOKEN DELIMETER
buffer-field1

TOKEN

buffer-field1
(delimited by
Character, buffer-field1
and buffer-field2
INPUT
Logical Field Name
(TEMP1)
Logical Field Name (LU1)
Logical Field Name (PR1)
Logical Field Name
(Field1) [Index]
SCRATCH
String
Number
and
valid labels
MOVE "PAXAR*CORPORATION", TASOURCE
TOKEN DELIMITER, "*"
TOKEN TASOURCE, TATOKEN, *DONE
MOVE TATOKEN, DISPLAY
JUMP *GETTOKEN
character
,
invalid label
[
[
buffer-field2
,
invalid label
,
[
[
character
as the token delimiter or extracts a sub-field
character
) and places it in
can be one of the following:
Description
Input Buffer
Temporary Buffer
Field
Lookup Buffer Field
Printer Buffer Field
Array Buffer Field
Scratch Buffer Field
An ASCII string
delimited by double
quotes
A number prefixed by
a number sign (#)
are discussed in "Script Flow" at the beginning of this
, valid label
] [
] ]
, valid label
] [
] ]
buffer-field2
.

Advertisement

Table of Contents
loading

Table of Contents