Re: Loop weirdness
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 50597
interpreted = N
texte = Removal of the {} brackets was probably the only change required. Using format= in a date tag breaks some versions. I do not remember which ones, but probably the one you're using ...>Still not working. At least this code doesn't send my server into >spasms. Works outside the
but not within .>Funny, I have never used the format= on a date, but I see it there >in the docs... . And the math I tried with and without date and {} - >seems that in this case it was the format= on the date tag... grrr.>>- ck>>>On Thursday, May 22, 2003, at 07:59 AM, Gary Krockover wrote:>>>Not sure if the format= is needed for the date formatting, but I added it>>just to be Webdocs complient. Seems that the curly braces were throwing off>>your math, since it wasn't a full date that you were adding 5 to:>>>>>>Year >>[loop start=[date format=%Y]&end=[math][date format=%Y]+5[/math]]>>[index] >>[/loop]>> >>>>GK>>>>>>>>>>>This does not seem to work... any reason anyone can think of? Mac OS X>>>- Web* 5>>>>>>>>>Year >>>[loop start=[date %Y]&end=[math]{[date %Y]}+5[/math]]>>>[index] >>>[/loop]>>> >>>>>>I have worked around it by doing the same this, but just wondered why>>>it doesn't work the other way.>>>>>>[math show=f]startdate=[date %Y][/math]>>>[math show=f]enddate=startdate+5[/math]>>>[loop start=[startdate]&end=[enddate]]>>> [index] >>>[/loop]>>>>>>------------------------------------------------------------->>This message is sent to you because you are subscribed to>> the mailing list .>>To unsubscribe, E-mail to: >>To switch to the DIGEST mode, E-mail to >>>>Web Archive of this list is at: http://webdna.smithmicro.com/>>>>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >>Web Archive of this list is at: http://webdna.smithmicro.com/-- Sincerely,Kenneth Grome-------------------------------------------------------------My programmers will write WebDNA code for you at $27 an hour!--------------------------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Removal of the {} brackets was probably the only change required. Using format= in a date tag breaks some versions. I do not remember which ones, but probably the one you're using ...>Still not working. At least this code doesn't send my server into >spasms. Works outside the but not within .>Funny, I have never used the format= on a date, but I see it there >in the docs... . And the math I tried with and without date and {} - >seems that in this case it was the format= on the date tag... grrr.>>- ck>>>On Thursday, May 22, 2003, at 07:59 AM, Gary Krockover wrote:>>>Not sure if the format= is needed for the date formatting, but I added it>>just to be Webdocs complient. Seems that the curly braces were throwing off>>your math, since it wasn't a full date that you were adding 5 to:>>>>>>Year >>[loop start=[date format=%Y]&end=[math] [date format=%Y]+5[/math]]>>[index] >>[/loop]>> >>>>GK>>>>>>>>>>>This does not seem to work... any reason anyone can think of? Mac OS X>>>- Web* 5>>>>>>>>>Year >>>[loop start=[date %Y]&end=[math] {[date %Y]}+5[/math]]>>>[index] >>>[/loop]>>> >>>>>>I have worked around it by doing the same this, but just wondered why>>>it doesn't work the other way.>>>>>>[math show=f]startdate=[date %Y][/math]>>>[math show=f]enddate=startdate+5[/math]>>>[loop start=[startdate]&end=[enddate]]>>> [index] >>>[/loop]>>>>>>------------------------------------------------------------->>This message is sent to you because you are subscribed to>> the mailing list .>>To unsubscribe, E-mail to: >>To switch to the DIGEST mode, E-mail to >>>>Web Archive of this list is at: http://webdna.smithmicro.com/>>>>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >>Web Archive of this list is at: http://webdna.smithmicro.com/-- Sincerely,Kenneth Grome-------------------------------------------------------------My programmers will write WebDNA code for you at $27 an hour!--------------------------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Kenneth Grome
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:
list items (1998)
Serial Number Question (1997)
WebSiphon and MGI links (2000)
Dates - Search and Sorting (1999)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
Using [showif] (2000)
Clean Code: Rules for inserting keyboard returns? (1997)
Help name our technology! (1997)
Inventory Adjustment SOLUTION (2000)
Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997)
multiple credit card merchant accounts/processors (1997)
attn: smitmicro - cart limitation (2002)
Bug Report, maybe (1997)
Webstar / WebCat - Persistent Setting (2003)
Include vs. lookup? (1998)
WebCat2 - [format thousands] (1997)
Re:no template caching (1997)
[protect] on NT? (1997)
dates as search criteria (2000)
Intermitent problem using [referrer] (1997)