Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Fox > Re: Parsing a S...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 9 Topic 846 of 861
Post > Topic >>

Re: Parsing a String

by "Des" <des@[EMAIL PROTECTED] > Jun 19, 2008 at 08:52 AM

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.
 




 9 Posts in Topic:
VFP9: Parsing a String
Gene Wirchenko <genew@  2008-06-18 19:58:06 
Re: VFP9: Parsing a String
Jack Jackson <jjackson  2008-06-18 22:29:17 
Re: VFP9: Parsing a String
"MikeA" <app  2008-06-19 05:53:58 
Re: VFP9: Parsing a String
Gene Wirchenko <genew@  2008-06-19 08:25:38 
Re: Parsing a String
"MikeA" <app  2008-06-19 05:41:53 
Re: Parsing a String
"Olaf Doschke"   2008-06-19 08:23:37 
Re: Parsing a String
"Olaf Doschke"   2008-06-19 08:33:38 
Re: Parsing a String
"MikeA" <app  2008-06-19 06:39:58 
Re: Parsing a String
"Des" <des@[  2008-06-19 08:52:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 14:17:28 CST 2008.