Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to parse a string
Message
From
04/12/2002 19:31:47
 
 
To
04/12/2002 19:18:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00729690
Message ID:
00729693
Views:
13
>I am using West Wind wwIPStuff classs to send emails within VFP application. In some cases I need to allow the user to enter multiple e-mail addresses as a recipient. The class works perfect if addresses “;” delimited like (xxx1@yzcom.com;xxx2@yzcom.com;xx3@yzcom.com), but if instead of “;” a user will use “,” or spaces or a combination of any delimiters with spaces like (xxx1@yzcom.com; xxx2@yzcom.com, xx3@yzcom.com,xx4@yzcom.com) the e-mail will be returned with a failure notice.
>I would like to replace all delimiters (like “,” and spaces or tabs or a combination with “;”). Does any one have an idea how to do that? Thank you in advance.

You just have to STRTRAN() for specific character.
lcEmail=...
lcEmail=STRTRAN(lcEmail,',',';')
lcEmail=STRTRAN(lcEmail,' ',';')
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform