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

Click here to load this message in the networking platform