Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366884

Summary: Add support for ForEach with Arrays
Product: z_Archived Reporter: Brian Svihovec <svihovec>
Component: EDTAssignee: Project Inbox <edt.mofmodel-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: jspadea
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Brian Svihovec CLA 2011-12-15 16:40:15 EST
Add support for ForEach with Arrays
Comment 1 Justin Spadea CLA 2012-04-24 10:42:42 EDT
Work is done. There used to be optional portions to the foreach, such as INTO, USING, and WITH, and those have been removed from the parser since they're not supported in any form of foreach.

When the target is an array the user must declare a variable in the loop as follows:

foreach (item int from myarray)
    ...
end

The SQL version of foreach does not currently support this syntax, it is unchanged from before.