Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AT() but whole word only
Message
From
02/07/2008 13:55:12
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01328188
Message ID:
01328323
Views:
9
>>>Fabio,
>>>Wouldn't that require all combinations of characters that could be used at word boundaries? I think using regex is better.
>>>Cetin
>>
>>Hi Cetin,
>>
>>To use regex is more complex and slow that to use native VFP functions,
>>BUT !
>>if the task is complex and require a complex VFP program,
>>then REGEX can become more simple and fast ...
>>
>>I have one rule only:
>>more complex -> more instable ...
>>
>>Fabio
>
>Fabio,
>
>I was going to suggest your solution too, but I'm now thinking you may have problems with chr(10), chr(13) and also probably dots. What if " king." is a word too?

I have not an universal answer,
but
? ' '+'king'+' ' $ ' '+CHRTRAN('king. and I','.'+0hA0D,SPACE(3))+' '
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform