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:
New WebCatalog Version !!! (1997)
Testing Message Rule, Sorry Guys! (2004)
Re:Emailer Set Up (1997)
multiple search commands (1997)
OT: need perl help, and question about switches (2007)
OT - Public Upload Security (2002)
[dos] command question (1997)
New Webcatalog for Mac (1997)
Database not found in Include (2002)
WordBreak Qestion (part 2) (1998)
WebCat2b15MacPlugIn - [authenticate] not [protect] (1997)
WebCat2 - [format thousands] (1997)
quantity minimum problem (1997)
Unexceling (was I need a smart quote...) (1999)
[listfiles] problems (1997)
WCS Newbie question (1997)
splitting numbers in webDNA? (1997)
WebCat2b13MacPlugIn - syntax to convert date (1997)
Country & Ship-to address & other fields ? (1997)
NT beta ReadMe missing (b12-b15) (1997)