wwUtils::AParseString

Parses a delimited string into an array by passing a delimiter to be used to split the string.

AParseString(@laResult, lcString, lcDelimiter)

Return Value

numeric - count of split strings

Parameters

@laResult
Array that's to receive the de-parsed strings.

lcString
The full string to parse.

lcDelimiter
The delimiter to split the string by. Default: ,

Example

lcString = "Rick,John,Markus,Ron"

DIMENSION aNames[1]
lnCount = AParseString(@aNames,lcString,",")

FOR x=1 TO lnCount
  ? aNames[x]
ENDFOR

See also:

Library wwUtils

© West Wind Technologies, 2004-2017 • Updated: 04/08/15
Comment or report problem with topic