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:

HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997) Web Catalog and Net Cloak (1998) Separate server for jpg/gif files (1998) LineItem variable set (2007) Re1000002: Setting up shop (1997) Creating main- and sub-category search (1997) [OT] Bad Hard Drive? (2003) serial number dishing (1997) ListFields and [name] (1997) Bug or syntax error on my part? (1997) Online reference (1997) Can ShowNext do this? (2000) WebCatalog Mac and cgi-bin (WebSTAR 2.0) (1997) [WebDNA] Data loss (2016) WC1.6 to WC2 date formatting -FIXED! (1997) [NT] ie 4.0 required (1997) Netscape (1997) DataBaseHelper Flawed (1997) The Form authentication trick (2000) Sorting Numbers (1997)