Extracts a text value between two delimiters. You can specify two ending delimiters or let the end of a line be considered an ending delimiter.
You can also optionally retrieve the string with its delimiters.
Visual FoxPro 9.0 includes a
STREXTRACTfunction that provides similar functionality and should be used whenever possible as it's native and faster.
STREXTRACTwas introduced in VFP 9 based on this
Extractfunction but behavior is slightly different.
Use this function over
STREXTRACTif you need to have a 3rd alternate ending delimiter, or you optionally need to search to the end of the string without matching a delimiter.
o.Extract(lcString,lcStartDelim,lcEndDelim1, lcEndDelim2, llEndOk, llIncludeDelims)
String between start and end delimiters. "" on error.
String to parse.
Starting delimiter to look for.
Ending Delimiter to look for.
Optional second ending delimiter.
It .T. end of line signals ending delimiter if nothing is found before.
Deterimines whether the delimiters matched are included in the result.
See also:Library wwUtils
Comment or report problem with topic