33
Both parameters of
O-String
mentioned above are numbers. But both parameters can be
specified as strings. If N is a string, it becomes a position and the meaning of
O-String
will be
"Output from position P to position N".
If P is defined as:
"
ab...ik
"
a, b, I, and k can be any character, the position will be evaluated as
-- Start from the first position of the original string and search character 'a'.
-- From the position next to 'a' in original data, search for 'b'.
-- ....
-- From the position next to 'i', search for k.
-- If above searches are all found, the result of the parameter will be the position where 'k' is
located.
If N is a string, the position evaluation of N is the same as P except that the searching position
is starting from P+1.
For both P and N, if string is defined, a value can be added to or subtracted from the position.
That following O-Strings:
"
ab...ik
"
+M
,
and
"
ab...ik
"
-M
,
are meaningful. M is an integer number.
Example:
Suppose the following is a message to be modified:
%B012345678901234^ABEL/STEVE L MGR ^90010129999999?
In this message:
"%" is start sentinel.
"012345678901234" is account number.
"^" is a separator
6. "ABEL" is surname.
"/" is a separator.
"STEVE" is first name.
"L" is initial.
"MGR" is title
"^" is a separator.
"9001" is expiration date.
"?" is end sentinel.
The output sequence desired is:
Surname, First Name [CR] Account Number [CR] Expiration Date [CR]
The formula input will be:
IN_ID
,0,
O-STR
,
"
^
"
+1,
"
/
"
-1,
"
,
"
,
O-STR
,
"
/
"
+1,
"
<
SP>
"
-1,
"
<
CR>
"
,
O-STR
,3,
"
^
"
-1,
"
<
CR>
"
,
O-STR
,
"
^^
"
+1,4,
"
<
CR>
"
,
Enter
Here <SP> is Space character and <CR> is Carriage Return character.
Summary of Contents for MS84XG
Page 1: ...Wireless Scanner MS840B MS840P MS084 User s Manual Version 1 5...
Page 42: ...34 The output of above input will be ABEL STEVE CR 012345678901234 CR 9001 CR...
Page 57: ...49 RS D US E SP A B C F G H I J L 0 1 2 3 4 5 6 7 8 9 Z F G H I...
Page 58: ...50 J V A B C D E F G H I J K L M N O P Q R S T U V W X Y Z K L M N _ O...