Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instigating outlook express in vfp
Message
 
To
07/10/2004 07:15:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00949284
Message ID:
00949565
Views:
13
>I was looking for the syntax to bring up outlook express by starting a new message and have the body filled with the contents of current any given dbf.
>
>This should help get you started:
>
>
>#DEFINE SW_SHOWNORMAL     1
>#DEFINE SW_SHOWMINIMIZED  2
>#DEFINE SW_SHOWMAXIMIZED  3
>lcFileName = "mailto:anita@drink.com?Subject=yada yada&Body=this is a test"
>DECLARE INTEGER ShellExecute IN shell32 ;
>        INTEGER lnhwnd, STRING lcOperation, ;
>        STRING lcFile, STRING lcParameters, ;
>        STRING lcDirectory, INTEGER lnShowCmd
>lnRes = ShellExecute( 0, "open", lcFileName, "", "", SW_SHOWMAXIMIZED )
>
Actually I figured it out, I just did a pre-append as you see here
lcFileName="mailto:timbowen1@drink.com?Subject=" +title+"&Body="+contents
the only problem that contents is a memo field and anytime there is an ampersand, it deciphers it as a special char and so the rest of the memo field gets truncated. oh well.
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform