Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Email from VFP
Message
 
To
18/09/1999 23:34:31
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00266439
Message ID:
00266498
Views:
21
>I have seen VFP applications where the click event of a control brings up mail client message window with the "to" address filled in. How is this done? TIA

John,
You can use the ShellExecute API call to do this.
DECLARE INTEGER ShellExecute IN Shell.DLL INTEGER nHandle, STRING@ cOperation ;
     STRING@ cFile, STRING@ cParms, STRING@ cPath, INTEGER nShow

lnReturn = ShellExecute( 0, "open", "mailto:name@domain.com", "", "", 9)
If lnReturn is greater than 32, it was successful.
Steve Ruhl
CitiMortgage, Inc.
steven.ruhl@citibank.com Office
Steve@steven-ruhl.com Home
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform