DADiSP Worksheet Functions > Function Categories > String Manipulation > STREXTRACT

 

STREXTRACT

Purpose:

Extracts part of a string.

Syntax:

STREXTRACT("string", start, length)

"string"

-

String to extract from.

start

-

An integer value for the starting character.

length

-

An integer value for the number of characters to extract.

Returns:

A string.

Example:

strextract("One and a two and a three", 11, 3)

 

returns: two.

Example:

strextract("One and a two and a three", 11, -1)

 

returns: two and a three.

Remarks:

Set the length parameter to -1 to extract from the start parameter to the end of the string.

See Also:

STRCAT

STRCMP

STRFIND

STRGET

STRMATCH

STRREPLACE

STRTRIM