Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mixed up!
Message
From
27/06/1998 23:42:26
 
 
To
27/06/1998 20:16:42
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00112212
Message ID:
00112236
Views:
15
>>4) Anyone know of a simplistic way to be able to click a button on a form and pop-up a dialog box to send an EMAIL message? How about a website? I've checked around and downloaded a couple of freeware programs, but nothing's worked; one of the zip files is even corrupt.
>>
>
>IMHO, by far the easiest way to do this is with the Shellexecute API call. Shellexecute receives a string as a parameter and decides what to do with it depending on your windows settings. For example, if you pass it "c:\mydoc.doc" shellexecute will open that file with MS Word just as if you had double clicked it in explorer. Th cool thing is that you can do this with e-mail and web addresses too. If you pass "HTTP://www.universlathread.com", windows knows to open up your default browser and go to that address. If you pass "mailto:esmoore@flash.net", your default mail program will start with an e-mail message addressed to yours truly.
>
>I can explain the details of shellexecute to you, but I'll do you one better, and point you to David Frankenbach's website to look for his spyin.vcx library, which contains a wrapper around this function, and makes it extremely easy to use. The URL is www.geocities.com/ResearchTriangle/9834/.
>
>HTH


Erik,

Man I'm learning this stuff fast -- THAT was a useful tip which can open many-a-door. My sincere thanks! I'll definitely check out David's website.

Mark
Previous
Reply
Map
View

Click here to load this message in the networking platform