Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366884 - Add support for ForEach with Arrays
Summary: Add support for ForEach with Arrays
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-15 16:40 EST by Brian Svihovec CLA
Modified: 2017-02-23 14:18 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.