lcStrng = "abc,,def,ghi,"
lcDelim = ","
lcCRLF = chr(13) + chr(10)
alines( la, strtran( lcStrng + lcDelim, lcDelim, lcCRLF ) )
this works for me in VFP v6 (ignoring the quotes issue stated below).
Regards
Des
Gene Wirchenko 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.


|