Menu

#1 Index looping control

open
nobody
Controls (2)
8
2007-05-12
2007-05-12
Sam Huang
No

Aim:
Unlike the existing loop control iterates thorugh the given data set, the request control loops over a series of numbers, which calls index on its own. This feature much similar to the common for() syntax in programming languages.

Demo:
The following snippet demostrates the expection, <loopc> is the requested control:
<row>
<loopc name="index" from="1" to="5">
<cell>$index</cell>
</loopc>
</row>

which results in
1 2 3 4 5

Names:
Suggested names for the control:
1. loopc
2. indexloop
3. iloop
4. loopindex
5. loopi

Another solution is to use the existed <loop> control, and grants the additional index iteration capability on it. But consider the difference in either objective and actual implementation of the two controls, using a different name and a different implementation is prefered.

Affects:
<no affects realized so far>

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.