| Summary: | Add support for ForEach with Arrays | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Brian Svihovec <svihovec> |
| Component: | EDT | Assignee: | 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
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.
|