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 to3 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 ifthe YEAR LOOP is at its last cycle, it will display a limited number onmonths, otherwise it will go to December.However I get the errorError: the 'LOOP' context requires that you specify aSTARTError: the 'LOOP' context requires that youspecify a END_To_Date %m]729707Error: Error: expected [/LOOP], butfound [/FORMAT][/SHOWIF]][/LOOP] [/LOOP] Actually, I get a lot more, but I think that's the importantpart.I'm using the following code. Can someone spot an error or give mesome advice?<[LOOP START=86&END=[FORMAT Days_To_Date%y][MATH]{[DATE]}+{3/0/0}[/MATH][/FORMAT]]< <[FORMAT Days_To_Date%Y][MATH]{1/1/[INDEX]}[/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]] <[FORMAT Days_To_Date%b][MATH]{[INDEX]/1/73}[/MATH][/FORMAT]< | [/LOOP]<
[/LOOP]<
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:
I'm trying to make a table taht displays the months from July, 1986 to3 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 ifthe YEAR LOOP is at its last cycle, it will display a limited number onmonths, otherwise it will go to December.However I get the errorError: the 'LOOP' context requires that you specify aSTARTError: the 'LOOP' context requires that youspecify a END_To_Date %m]729707Error: Error: expected [/LOOP], butfound [/FORMAT][/SHOWIF]][/LOOP] [/LOOP] Actually, I get a lot more, but I think that's the importantpart.I'm using the following code. Can someone spot an error or give mesome advice?<[LOOP START=86&END=[FORMAT Days_To_Date%y][math]{[date]}+{3/0/0}[/MATH][/FORMAT]]< <[FORMAT Days_To_Date%Y][math]{1/1/[INDEX]}[/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]] <[FORMAT Days_To_Date%b][math]{[INDEX]/1/73}[/MATH][/FORMAT]< | [/LOOP]<
[/LOOP]<
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:
OLD ORDERS (1998)
Summing fields (1997)
Calculating multiple shipping... (1997)
WebDNA Mail issues (2002)
Out of the woodwork (2007)
Help name our technology! (1997)
[platform] tag? (1998)
PCS Frames (1997)
Locking up with WebCatalog... (1997)
carriage returns in data (1997)
New WebDNA Forum Solution (in development) (2003)
[WebDNA] Mail and SPF (2011)
Help with Repost Data msg from form (1997)
target=_blank and form variables (1997)
[WebDNA] Converting minutes to hours (2008)
Running 2 two WebCatalog.acgi's (1996)
Server Freeze (1998)
[WebDNA] Poll: Discussion Forum (2009)
[OT] CSS and SSI books (2004)
OS Limitations (1998)