Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
After @
Message
From
27/09/2008 13:30:32
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01351309
Message ID:
01351310
Views:
15
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"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform