Operation Manual
Programming for Expert Users
204 PowerScan™ M8500
FindStringByStarting&EndingChar (FSTR)
This function has the following syntax:
FSTR<source_string, string_start, string_stop, mode>string
This function searches for a substring having a defined starting character ("string_start") and
a defined ending character ("string_stop") within the "source_string". It returns the string
you searched for, or an empty one in case of failure.
If searching for a substring having characters already known, the "string_start" and
"string_stop" arguments must share the
same value.
The "mode" argument allows managing the starting charac
ter ("string_start") and the
ending character ("string_stop"):
0 = include both starting and ending character
1 = include only starting character
2 = include only ending character
3 = discard both starting and ending
character
FindStringByStartingChar&Len (FLSTR)
This function has the following syntax:
FLSTR<source_string, string_start, len, mode>string
This function
searches for a substring having a defined starting character ("string_start") and
a de
fined length ("len") within the "source_string". It returns the string you searched for, or
an empty one in case of failure.
If searching for a substring having a length already known, the "string_start" and
"string_stop" arguments must share the
same number.
The "mode" argument allows managi
ng the starting character ("string_start"):
0 = include starting character
1 = discard starting character
SelectString (SSTR)
This function has the following syntax:
SSTR<source_string, pos_start, pos_end>string
It extracts a
substring whose characters are between "pos_start" and "pos_end" from the
"source_string".
If
"pos_end" is longer than the "source_string" length, no error wi
ll be generated since the
exceeding characters are ignored.
The first character of every string is in
position 1.
CONVENTIONS DESCRIPTION
+ Concatenates two strings or fields.
- Deletes a substring or a field from the original string.
#DS Returns the string which has been decoded by the library.
#F<n>
Returns the result of a format which has been previously defined. The
<n> v
alue is in the range 1-4.










