Extract a text from a text.
A text object
Starting position in the text
setparam("sys_sepchar",46) ! '.'
produces this output:
The behaviour of this routine depends on 2 control parameters:
defines a field separator that
may mark the end of a non-quoted string and the parameter
specifies the convention to use for quoted strings: if this parameter has
(the default), Mosel quoting convention is used
(both single and double quotes may be employed and with double quotes
escape sequences are allowed); with value 1
, C/C++ quoting
convention applies (only double quotes with escape sequences). Finally,
with value 2
, CSV convention is expected (double quotes and
repetition of double quotes to escape this character). The returned
string is decoded: quotes are removed and escape sequences are replaced
by their corresponding characters.
The parsing begins at the specified starting position and stops
as soon as the separator character
is found or the quoted string is terminated.
This location is then stored
in the parameter sys_endparse
. This control parameter
is used as the starting position when start
is not provided.
In case of error, getsysstat
will return a negative value.
A positive value indicates that a quoted string is unfinished (i.e.
the end of the source text is reached
although no matching quote has been found).
If you have any comments or suggestions about these pages,
please send mail to firstname.lastname@example.org.
© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.