Nested Loops and SHOWIFs

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13451
interpreted = N
texte = I'm trying to make a table taht displays the months from July, 1986 to 3 months from todays date. I want it to look like this: 1986 July Aug Sep Oct Nov Dec1987 Jan Feb Mar Apr May June July Aug Sep Oct Nov Dec1988 Jan Feb Mar Apr May June July Aug Sep Oct Nov Dec... I'm using nested loops. The outside loop controls the year, the inside one controls the month.On the inside loop, I use a SHOWIF/HIDEIF on the END param so that if the YEAR LOOP is at its last cycle, it will display a limited number on months, otherwise it will go to December.However I get the errorError: the 'LOOP' context requires that you specify a STARTError: the 'LOOP' context requires that youspecify a END_To_Date %m]729707Error: Error: expected [/LOOP], but found [/FORMAT][/SHOWIF]][/LOOP] [/LOOP] Actually, I get a lot more, but I think that's the important part. I'm using the following code. Can someone spot an error or give me some advice? <[LOOP START=86&END=[FORMAT Days_To_Date %y][MATH]{[DATE]}+{3/0/0}[/MATH][/FORMAT]]< < [SHOWIF [INDEX]=86]<[/SHOWIF] [LOOP [SHOWIF [INDEX]=86]START=7[/SHOWIF][HIDEIF [INDEX]=86]START=1[/HIDEIF]&END=[HIDEIF [INDEX]=[FORMAT Days_To_Date %y][MATH]{[DATE]}+{3/0/0}[/MATH][/FORMAT]]12[/HIDEIF][SHOWIF [INDEX]=[FORMAT Days_To_Date %y][MATH]{[DATE]}+{3/0/0}[/MATH][/FORMAT]][FORMAT Days_To_Date %m][MATH]{[DATE]}+{3/0/0}[/MATH][/FORMAT][/SHOWIF]] < [/LOOP]<[/LOOP]<
[FORMAT Days_To_Date %Y][MATH]{1/1/[INDEX]}[/MATH][/FORMAT]<<[FORMAT Days_To_Date %b][MATH]{[INDEX]/1/73}[/MATH][/FORMAT]<
MichaelMichael Winston *By Phone!: (503)/652/8815 x341Internet Coordinator *By e-mail!: michaelw@dhorse.comDark Horse Comics, Inc. *By web!: http://www.dhorse.com/
Associated Messages, from the most recent to the oldest:

    
  1. Re: Nested Loops and SHOWIFs (Michael Winston 1997)
  2. Re: Nested Loops and SHOWIFs (Michael Winston 1997)
  3. Re: Nested Loops and SHOWIFs (Kenneth Grome 1997)
  4. Re: Nested Loops and SHOWIFs (Kenneth Grome 1997)
  5. Nested Loops and SHOWIFs (Michael Winston 1997)
I'm trying to make a table taht displays the months from July, 1986 to 3 months from todays date. I want it to look like this: 1986 July Aug Sep Oct Nov Dec1987 Jan Feb Mar Apr May June July Aug Sep Oct Nov Dec1988 Jan Feb Mar Apr May June July Aug Sep Oct Nov Dec... I'm using nested loops. The outside loop controls the year, the inside one controls the month.On the inside loop, I use a SHOWIF/HIDEIF on the END param so that if the YEAR LOOP is at its last cycle, it will display a limited number on months, otherwise it will go to December.However I get the errorError: the 'LOOP' context requires that you specify a STARTError: the 'LOOP' context requires that youspecify a END_To_Date %m]729707Error: Error: expected [/LOOP], but found [/FORMAT][/SHOWIF]][/LOOP] [/LOOP] Actually, I get a lot more, but I think that's the important part. I'm using the following code. Can someone spot an error or give me some advice? <[LOOP START=86&END=[FORMAT Days_To_Date %y][math]{[date]}+{3/0/0}[/MATH][/FORMAT]]< < [SHOWIF [INDEX]=86]<[/SHOWIF] [LOOP [SHOWIF [INDEX]=86]START=7[/SHOWIF][HIDEIF [INDEX]=86]START=1[/HIDEIF]&END=[HIDEIF [INDEX]=[FORMAT Days_To_Date %y][math]{[date]}+{3/0/0}[/MATH][/FORMAT]]12[/HIDEIF][SHOWIF [INDEX]=[FORMAT Days_To_Date %y][math]{[date]}+{3/0/0}[/MATH][/FORMAT]][FORMAT Days_To_Date %m][math]{[date]}+{3/0/0}[/MATH][/FORMAT][/SHOWIF]] < [/LOOP]<[/LOOP]<
[FORMAT Days_To_Date %Y][math]{1/1/[INDEX]}[/MATH][/FORMAT]<<[FORMAT Days_To_Date %b][math]{[INDEX]/1/73}[/MATH][/FORMAT]<
MichaelMichael Winston *By Phone!: (503)/652/8815 x341Internet Coordinator *By e-mail!: michaelw@dhorse.comDark Horse Comics, Inc. *By web!: http://www.dhorse.com/
Michael Winston

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:

Sendmail truncation in Eudora Clients (1998) Re:HTTP header line is too long? (1997) WebCat2b15MacPlugin - showing [math] (1997) Emailer (1997) [isfile] ? (1997) WebMerchant 3.0? (1998) Am I being really stupid? (2003) Preventing code execution (2003) Date Calulation (1997) Keep away (1997) Country & Ship-to address & other fields ? (1997) Price Hacking (1998) Re:Multiple SSL Keys (1998) Date sorting (1997) [url] (1997) Backwards list behavior ... (1997) Summing fields (1997) Not really WebCat (1997) WebCat2 - Getting to the browser's username/password data (1997) can webcat create directories on NT? (1997)