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:
Searchable Archive: Sender? (1998)
searchable list archive (1997)
[OT] Read and weep (2003)
make a beep (2004)
[WebDNA] WebDNA 6.1 Info (2008)
method of payment (1997)
Help name our technology! (1997)
EMailFolder vs. EMailCompleted folder (2002)
Include vs. lookup? (1998)
multi-paragraph fields (1997)
ElseIf Statements? (2005)
Duplicate Emails being sent (2004)
WebCat2b13MacPlugin - nested [xxx] contexts (1997)
Emailer problems addition (1999)
email [title] (1997)
[WebDNA] What Webcatalog with Itools?? (2008)
Showif Context combined with Search (1997)
Stopping bad HTML propagation ? (1997)
[shell]? (2000)
Email within tmpl ? (1997)