Re: listfiles, moving files
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 17228
interpreted = N
texte = >I tried the below suggestion and the deletefiles routine only deletes>every other file still.Yes, this is caused by the same undocumented *feature* I discovered a week or two ago.When you place a [delete] tag inside any context that goes thru a loop -- such as [founditems] or [listfiles] or [loop] -- the delete tag will NOT work the way you might expect.That's because each time an item is deleted inside a looping context, all the index values for the remaining items are changed. But since the process of deleting items relies on the ORIGINAL index value -- not the new index value that's created after each item is deleted -- the results are never what you want.Therefore, you should NEVER use a [delete] tag inside a context that goes thru a looping process!Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
>I tried the below suggestion and the deletefiles routine only deletes>every other file still.Yes, this is caused by the same undocumented *feature* I discovered a week or two ago.When you place a
[delete] tag inside any context that goes thru a loop -- such as
[founditems] or
[listfiles] or
[loop] -- the delete tag will NOT work the way you might expect.That's because each time an item is deleted inside a looping context, all the index values for the remaining items are changed. But since the process of deleting items relies on the ORIGINAL index value -- not the new index value that's created after each item is deleted -- the results are never what you want.Therefore, you should NEVER use a
[delete] tag inside a context that goes thru a looping process!Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
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:
$purchase WITHOUT creditcar (1997)
Running _every_ page through WebCat ? (1997)
Error 11 (1996)
[format] problem (2001)
Tip for making barcharts (1997)
Summing fields (1997)
Associative lookup style? (1997)
Re[5]: Problem with new formvariables (2000)
5.0 Pricing (2003)
(2001)
Converting characters to numbers ... (1997)
searching numbers (1998)
Country & Ship-to address & other fields ? (1997)
japanese characters (1997)
[WebDNA] convert time stamp back (2010)
Storefornts (1997)
Add htmlarea 3 to SiteBuilder (2004)
re: Large databases in WebCat (1997)
'bot Q (2000)
Shipping costs again (1998)