Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Translate from Spanish to English into VFP
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01493393
Message ID:
01493394
Views:
138
>Hello
> How to translate automatically records with memo fields in Spanish to English?
>
>Thanks.

NOT TESTED PROPERLY:
DECLARE INTEGER Sleep IN WIN32API INTEGER
LOCAL ieObj AS InternetExplorer.Application

*** Forgive my Spanish. This is from Google translate also :-) 
TEXT TO lcTranslate NOSHOW
Su texto espanol
ENDTEXT

ieObj = CREATEOBJECT("InternetExplorer.Application")
ieObj.Visible = .t.
ieObj.Navigate2("http://translate.google.com/#es|en|"+lcTranslate)
DO WHILE ieObj.ReadyState() # 4
   Sleep(10)
ENDDO
Sleep(10)
ieTrans = ieObj.Document.GetElementById("result_box")

WAIT WINDOW ieTrans.innerText
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform