Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

loop index in a foreach

0 views
Skip to first unread message

Wilfried Mestdagh

unread,
Oct 31, 2006, 8:04:42 AM10/31/06
to
Hi,

Is it possible to get the current loop index in a foreach block ?

--
rgds, Wilfried [MapPoint MVP]
http://www.mestdagh.biz

Marc Gravell

unread,
Oct 31, 2006, 8:16:37 AM10/31/06
to
Not normally, no.

You could declare your own counter outside of the loop, or use an
indexed-based for-next loop.

Marc


0 new messages