Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Searching not the same words
Message
De
14/02/2005 09:49:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00986592
Message ID:
00986618
Vues:
35
>yes you are correct

Then, it seems to me that you should do the following step.

1) Replace spaces and commas with chr(13) + chr(10).
2) Copy to an array, with alines().
3) Copy this to a temporary cursor - one record for each word.
4) Use a SELECT with GROUP BY (or with DISTINCT) to eliminate duplicates.
5) Put the pieces together again, and copy to your destination.
6) Repeat for each record in the table, if this is what you want.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform