On Wed, 18 Jun 2008 19:58:06 -0700, Gene Wirchenko <genew@[EMAIL PROTECTED]
>
wrote:
> Is there a function for parsing a comma-delimited string into an
>array of substrings? I thought there was, but I can not find it in
>the docs.
>
> Example: "abc,,def,ghi," would return an array of elements:
> "abc"
> ""
> "def"
> "ghi"
> ""
>
>Sincerely,
>
>Gene Wirchenko
>
>Computerese Irregular Verb Conjugation:
> I have preferences.
> You have biases.
> He/She has prejudices.
ALINES has an option to specify the delimiter in newer versions.
There is also GETWORDNUM and GETWORDCOUNT.
However, you have to be careful about your requirement to get empty
items. GETWORDNUM/GETWORDCOUNT ignore empty items - they treat a
single delimiter the same as multiple delimiters in a row. I suppose
that comes from them originally only using space as the delimiter. I
think ALINES will keep the empty ones, but you need to check.


|