Re: Loops and [index]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19404
interpreted = N
texte = Set a math variable before entering the second loop:[loop start=1&end=10] [math show=f]OuterLoopIndex=[index][/math] [loop start=1&end=10] The inner loop index is: [index]
The outer loop index is: [math]OuterLoopIndex[/math]
[/loop] [/loop]At 5:54 PM 8/11/98, Bill Norman wrote: >I have a loop within a loop and I want to use the [index] number from >the first loop. How would I go about doing that. > > >example: > >[loop start=1&end=[INTRows]] > > > >[loop start=1&end=[INTCols]] > > > > > > > >[/loop] > > > >[/loop] > > >Bill Norman o--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--------------- 802.253.8612 --+ o--- dave@digitalfrontier.com --+ Associated Messages, from the most recent to the oldest:

    
  1. Re: Loops and [index] (Kenneth Grome 1998)
  2. Re: Loops and [index] (Trevor Crist 1998)
  3. Re: Loops and [index] (Dave MacLeay 1998)
  4. Loops and [index] (webmaster@textileweb.net (Bill Norman) 1998)
Set a math variable before entering the second loop:[loop start=1&end=10] [math show=f]OuterLoopIndex=[index][/math] [loop start=1&end=10] The inner loop index is: [index]
The outer loop index is: [math]OuterLoopIndex[/math]
[/loop] [/loop]At 5:54 PM 8/11/98, Bill Norman wrote: >I have a loop within a loop and I want to use the [index] number from >the first loop. How would I go about doing that. > > >example: > >[loop start=1&end=[INTRows]] > > > >[loop start=1&end=[INTCols]] > > > > > > > >[/loop] > > > >[/loop] > > >Bill Norman o--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--------------- 802.253.8612 --+ o--- dave@digitalfrontier.com --+ Dave MacLeay

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCatalog can't find database (1997) NT License trade for Mac (2000) form data submission gets truncated (1997) [Announce]: Web server security and password protection (1997) Webcatalog on MacOs (2000) Problem passing variables - IE vs Netscape (2000) [GROUPS] followup (1997) Possible Bug in 2.0b15.acgi (1997) Error Lob.db records error message not name (1997) Frames and WebCat (1997) Search/sort in URL Was: GuestBook example (1997) WebCatalog can't find database (1997) Online reference (1997) Upgrading old WebCat Database Files (1997) Webstar 1.3.1 PPC (1997) Nested search (1997) Keep away (1997) Where is f2? (1997) Number of Open Databases (1998) splitting numbers in webDNA? (1997)