Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Identify attachment extension
Message
De
16/04/2010 06:41:36
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01460476
Message ID:
01460497
Vues:
43
>In Outlook automation, is there a quick way to identify the type of attachment(s) that accompany an email.
>i am trying to get rid of superfluous .gifs that sometimes come with emails - but wish to store all others
>Here is my code to store the attachments:
>
>loAttach = loMSG.attachments   && attachments object
>llAttach = Iif(loAttach.Count > 0,.T.,.F.)   && number of attachments
>For Each loAttachment In loMSG.attachments
>loAttachment.SaveAsFile("c:\attachments\"+loAttachment.filename)   && save attachment
>Next
>
>as it now stands it's not until the attachments are stored that i can sift through them.
>
>thanks for help.
>
>k

You have loAttachment.filename can't you check extension from there?

JustExt( loAttachment.filename )

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform