Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Translate from Spanish to English into VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
Visual FoxPro
Divers
Thread ID:
01493393
Message ID:
01493394
Vues:
139
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform