Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to distinguish doc and docx count
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01546401
Message ID:
01546410
Vues:
25
>>I am saving email attachment in directory called attachments.
>>I then do a count to determine if the file is a .doc or a .docx
>>
>>the count i am using does not seem to distinguish between the two. I have ONE file in attachments which is a .docx
>>instead i am getting 1 count for doc AND i count for docx.
>>
>>any idea how i can distinguish the two
>>
>>thanks for your help
>>k
>>
>>
>>For Each loAttachment In loMSG.attachments
>>loAttachment.SaveAsFile("c:\attachments\"+loAttachment.filename)   && save attachment
>>Next
>>
>>lnFileCountdocx = Adir(laFiles, "C:\attachments\*.docx")
>>lnFileCountdoc = Adir(laFiles, "C:\attachments\*.doc ")
>>
>
>It looks like you have to loop through array and check each extension.
>
>BTW, does changing SET EXACT ON have any effect?

good thought naomi
alas it doesn't make any difference.

k
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform