Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array Question
Message
From
12/10/2000 13:01:18
 
 
To
12/10/2000 10:50:14
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00428486
Message ID:
00428611
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform