Modify

#3043 closed Bug (No Bug)

FOR..IN..NEXT loop completes before processing all Outlook maillitems

Reported by: apoliemans Owned by:
Milestone: Component: AutoIt
Version: 3.3.12.0 Severity: None
Keywords: Cc:

Description

Tested in v3.3.12.0 and v3.3.13.20 (beta).

When iterating Outlook mailitems using a FOR..IN..NEXT loop,
and deleting (some or all) mailitems while iterating,
the loop exits before processing all items.

Testcase attached: Outlook_test.au3

When running similar lines of code in Excel (FOR..IN..NEXT loop to delete sheets) it does, as expected, delete all items (except the last sheet which can never be deleted by design).

Testcase attached: Excel_test.au3

I would expect the Outlook loop to delete all mailitems.

Attachments (2)

Outlook_test.au3 (1.3 KB ) - added by apoliemans on Jun 7, 2015 at 9:12:58 PM.
testcase FOR..IN..NEXT loop deleting Outlook mailitems
Excel_test.au3 (1.7 KB ) - added by apoliemans on Jun 7, 2015 at 9:14:22 PM.
FOR..IN..NEXT loop deleting Excel sheets

Download all attachments as: .zip

Change History (5)

by apoliemans, on Jun 7, 2015 at 9:12:58 PM

Attachment: Outlook_test.au3 added

testcase FOR..IN..NEXT loop deleting Outlook mailitems

by apoliemans, on Jun 7, 2015 at 9:14:22 PM

Attachment: Excel_test.au3 added

FOR..IN..NEXT loop deleting Excel sheets

comment:1 by apoliemans, on Jun 8, 2015 at 12:13:21 PM

In addition, my config is

  • WIN7 32-bit
  • MS Outlook 2007.

Andre

comment:2 by apoliemans, on Jun 8, 2015 at 6:03:19 PM

Problem also on:

  • WIN7 64-bit
  • MS Outlook 2010

Andre

comment:3 by Jos, on Jun 9, 2015 at 6:48:33 PM

Resolution: No Bug
Status: newclosed

Same is happening with a VBScript so not an AutoIt3 Comm issues

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.