Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filter text string
Message
From
07/04/2003 09:06:22
 
 
To
07/04/2003 08:28:28
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00774644
Message ID:
00774660
Views:
13
This message has been marked as the solution to the initial question of the thread.
Hi Russell,

Hypothesis: "," and ";" are separator

lcTestString='test;test;test1;test;test1;test2'

ALINES(aWords,m.lcTestString,";")
lcNewString=''


FOR EACH wWord IN aWords
IF AT(','+m.wWord,m.lcNewString)=0
lcNewString=m.lcNewString+','+m.wWord
ENDIF
ENDFOR
lcNewString=SUBSTR(m.lcNewString,2)
?lcNewString

OR


SET EXACT OFF
FOR EACH wWord IN aWords
IF m.lcNewString#','+m.wWord
lcNewString=','+m.wWord+m.lcNewString
ENDIF
ENDFOR
lcNewString=SUBSTR(m.lcNewString,2)
?lcNewString


Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform