Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Instigating outlook express in vfp
Message
 
À
07/10/2004 07:15:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00949284
Message ID:
00949565
Vues:
15
>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."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform