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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement