Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to parse a string
Message
From
04/12/2002 20:20:26
 
 
To
04/12/2002 20:07:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00729690
Message ID:
00729716
Views:
10
Thank you very much for your suggestion. I actually will use a combination of your code with a slight modification and the code that Hilmar suggested earlier.
I need to do this in case the “ “ is an only delimiter, and then by using your code it would replace it with an empty string and will result in an incorrect address.

lcDelims = ",:/" && all the delimiters you want changed
lcChangeTo = ";"
lcEmail = ChrTran(lcEmail, lcDelims + " ", Replicate(lcChangeTo, Len(lcDelims)+1))
do while ";;" $ lcEmail
lcEmail = StrTran(lcEmail, ";;", ";")
enddo

Thank you again to everybody
Yelena
Previous
Reply
Map
View

Click here to load this message in the networking platform