Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array Question
Message
De
12/10/2000 13:01:18
 
 
À
12/10/2000 10:50:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00428486
Message ID:
00428611
Vues:
14
Mark answered your question, but I wanted to give you a couple of other comments on your code:

> ADIR( latemp , pcfile + '*.*' )
> lntotfilestoattach = ALEN( latemp, 1 )

The ADIR() function returns the number of rows in the array, so you can cut this down to a single line:

lnTotFilesToAttach = ADIR( latemp , pcfile + '*.*' )


> counter = 1
> for i = 1 to lntotfilestoattach
> lcfilename = latemp[counter,1]
> lcattachfile = pcfile + lcfilename
> oAttachment = ;
> this.oOutlookEmailMessage.attachments.add(lcattachfile)
> counter = counter + 1
> loop
> endfor

There's something strange about what you're doing here. Why do you need both Counter and I? They're both counting the same thing. Also, why do you have the LOOP statement right before the end of the loop; it doesn't change anything.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform