Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Searching not the same words
Message
From
14/02/2005 09:49:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00986592
Message ID:
00986618
Views:
34
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform