Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting a VFP 5.0 program to spawn/call a browser and em
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00129224
Message ID:
00129255
Views:
16
You can navigate to a URL using the user's default browser by using the ShellExecute WinAPI function. Try this:
DECLARE INTEGER GetActiveWindow IN win32api
hwnd=GetActiveWindow()
ECLARE INTEGER ShellExecute IN shell32 INTEGER, STRING, STRING, STRING, STRING, INTEGER
m.lnExecResult=ShellExecute(hwnd,'open','http://www.microsoft.com', '', '.', 5)
This will take you to Microsoft's site. The result will be >32 if it's successful.

You can send e-mail using the MAPI session and message controls included with VFP. You can see an example of this by running the Solutions sample that ships with VFP. Just run VFP\Samples\solution.app.

>Hi! :)
> I would like to be able to spawn a browser (with a URL from a VFP database) and to send email.
>
> Does anyone know how to do that? :)
>
>Thanks for any help!
>
>Ian
Previous
Reply
Map
View

Click here to load this message in the networking platform