Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
$, but for words
Message
From
26/08/2003 20:28:44
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00823290
Message ID:
00823650
Views:
21
>I want to find certain words in a string. meaning the word can be at the beginning of the string followed by a space, at the end of the string preceeded by a space, or in the middle of the string both preceeded and followed by a space. I use VFP 6.0 SP5. How can I accomplish this without my current bunch of goobly gook code.
>
>Thanks
>
>Brenda

If you ignore punctuation marks:

? upper(" word ") $ " this phrase contains more than just one word "

IOW, add a space at the beginning and at the end.

HTH,

Hilmar.
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