Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Move readed mail to another folder via VFP
Message
From
20/06/2001 04:28:07
 
 
To
20/06/2001 01:34:39
Michael Ouellette
Australian Technical Services (VIC) Pty
Australia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00512534
Message ID:
00521302
Views:
11
Thanks Mike

I am just getting to the part of my app where I have to move mail to the deleted folder after it has been processed so your timing is immaculate.




>For y=1 to THISFORM.oMail.oInbox.folders.count
>* here I find the folder number by scanning all folders
> If lower(THISFORM.oMail.oInbox.folders[y].name)="completed"
> m.moveloc=THISFORM.oMail.oInbox.folders[y]
> Exit
> Endif
>Endfor
>
>For x=1 to my && whre my = # of emails to move
> Thisform.oMail.oInbox.Items[(my+1)-x].unread=.F.
>* can't move while reading cause the number of items changes!!!
> Thisform.oMail.oInbox.Items[(my+1)-x].move(m.moveloc)
>Endfor
>
>* Note I move the last email [(my+1)-x] and move backwards
>* we could also just move based on the entryid
>
>Cheerio
>
>TheYankDownUnder
>- Mike O
Previous
Reply
Map
View

Click here to load this message in the networking platform