32
O-String
Format:
O-STR , P, N,
O-String always applies to the original data. It contains two parameters. The first is position
parameter (P) that specifies the start output position in the original data. Parameter N tells how
many characters will be included beginning from P.
Example:
Original data is:
Barcode
Then
O-Str , 4, 4,
Gives output as
code
Note:
-- N can be '#' for all remaining characters from P.
-- If P greater than the length of original data, the O-String will be skipped.
-- If N greater than the number of remaining characters counting from P, the remaining
characters are included as valid.
Examples
Example 1
If the original data is Code 39 and content is "AA", output "ABC Company", and otherwise
output the original data as it is.
IN_ID,0,LEN,2,2,MATCH,1,"AA","ABC company",Enter
IN_ID,19,O-STR,1,#,Enter
Example 2
If the original data is Code 128 and logically divided into:
-- First six characters are personal ID,
-- Other characters are person's name.
The output will be:
-- Personal ID first,
-- A 'CR' character,
-- Two interblock delay,
-- Name,
-- A 'CR' character.
The Formula will be:
IN_ID,8,O-STR,1,6,"<CR>**",O-STR,7,#,"<CR>",Enter
<CR> is a Carriage Return character scanned from Full ASCII Chart.
Advanced Features
The O-String has the format:
O-STR,P,N,