Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filter text string
Message
De
07/04/2003 09:06:22
 
 
À
07/04/2003 08:28:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00774644
Message ID:
00774660
Vues:
12
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform