You can't call the API directly from VFP. As the tutorial explains, you need to use Javascript.
If you want to create a VFP form, in which your user can type some text and see its transliteration, you could try this:
1. Copy the Hello World example from the tutorial into a text file. Save it on your computer with the extension HTM.
2. Create a VFP form. Drop an OLE Web Browser control onto it. Name it, say, oBrowser.
3. Put a button on the form. In its Click event, type [tt]THISFORM.oBrowser.Navigate2("c:\forms\hello.htm")[/tt], where [tt]c:\forms\hello.htm[/tt] is the name under which you saved the file.
4. When you run the form, the user will see a textbox into which they can type Hindi text, and see it transliterated into English (or vice versa).
The above isn't meant to be a complete solution. It's just to give you the general idea.
If you want to transliterate text automatically within your application, without user involvement, then that's more difficult.
Finally, note that transliteration isn't the same as translation. Google has a different set of tools for translation.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips and downloads