Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
After @
Message
De
27/09/2008 13:30:32
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01351309
Message ID:
01351310
Vues:
14
This message has been marked as a message which has helped to the initial question of the thread.
>You can I remove the contents after @ and add "hotmail.com"
>So it becomes @hotmail.com
>
>I already have the code to detect most common typos, but
>I dont know how to replace it
>
>
>Moises

I'm not sure what you mean. Something like:

lcValue = "tracy@htmail.com"
?lcValue
lcValue = LEFT(lcValue,AT("@",lcValue)-1)+"@hotmail.com"
?lcvalue

or include the @:

lcValue = "tracy@htmail.com"
?lcValue
lcValue = LEFT(lcValue,AT("@",lcValue))+"hotmail.com"
?lcvalue
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform