Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AT() but whole word only
Message
From
03/07/2008 02:58:58
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01328188
Message ID:
01328530
Views:
6
>>>>I have not an universal answer,
>>>>but
>>>>
>>>>
>>>>? ' '+'king'+' ' $ ' '+CHRTRAN('king. and I','.'+0hA0D,SPACE(3))+' '
>>>>
>>>
>>>I don't have VFP here, but AFAIK it would not work.
>>>
>>>k.ing and I
>>
>>Not really, Nadya,
>>
>>The dot gets transformed into a space char, hence 'k ing'
>
>You're right and Fabio is right. Hard to work everything in the head.
>
>What about the . at the beginning of the word?
>
>.king and I ?
>
>.king is not a word.

The . is a word separator or boundary. So both methods will match '.king'
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform