Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to parse a string
Message
From
04/12/2002 20:34:54
 
 
To
04/12/2002 19:36:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00729690
Message ID:
00729720
Views:
11
>Thank you for your prompt reply, but if I have a combination of “;” and a space before or after it the command STRTRAN(lstring,” “,”;”) will result in “;;”

The following will add a priority list to the code:
lcEmail=...
lcEmail=STRTRAN(lcEmail,'; ',';')
lcEmail=STRTRAN(lcEmail,', ',';')
lcEmail=STRTRAN(lcEmail,',',';')
lcEmail=STRTRAN(lcEmail,' ',';')
Basically, if there is no validation in what the user enters, you will end up with all types of validation. But, at least, the following will resolve the issues you brought.
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
Reply
Map
View

Click here to load this message in the networking platform