Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AT() but whole word only
Message
De
03/07/2008 02:58:58
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01328188
Message ID:
01328530
Vues:
7
>>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform