Re: [REPLACE] inside [FOUNDITEMS]
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 19185
interpreted = N
texte = Maybe Grant can clarify this, but I don't believe that [replace] willchange the [index] values (the positions of the rows in the db), just thevalues in the database.At 4:10 PM 7/29/98, Kenneth Grome wrote:>It is unfortunately still NOT documented, but it is nevertheless a very>BAD practice to use delete or replace contexts inside founditems loops.>The reason has to do with the way the founditems loop works. It uses the>[index] value of the found items in a way that causes it to fail when>*any* of the index values change during the looping process. So, since>replace and delete are the two actions that can change the relative index>values of the items inside the loop, you should NEVER use delete or>replace inside a founditems context.o--------------- Dave MacLeay --+o----------- Digital Frontier --+o--- dave@digitalfrontier.com --+
Associated Messages, from the most recent to the oldest:
Maybe Grant can clarify this, but I don't believe that
[replace] willchange the [index] values (the positions of the rows in the db), just thevalues in the database.At 4:10 PM 7/29/98, Kenneth Grome wrote:>It is unfortunately still NOT documented, but it is nevertheless a very>BAD practice to use delete or replace contexts inside founditems loops.>The reason has to do with the way the founditems loop works. It uses the>[index] value of the found items in a way that causes it to fail when>*any* of the index values change during the looping process. So, since>replace and delete are the two actions that can change the relative index>values of the items inside the loop, you should NEVER use delete or>replace inside a founditems context.o--------------- Dave MacLeay --+o----------- Digital Frontier --+o--- dave@digitalfrontier.com --+
Dave MacLeay
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:
TCP Connect (2000)
Press Release hit the NewsWire!!! (1997)
Another question (1997)
possible, WebCat2.0 and checkboxes-restated (1997)
PDF on the fly - how to? (2005)
[WebDNA] On click show hidden include (2009)
Associative lookup style? (1997)
[WebDNA] WebDNA Roll Call (2013)
More on the email templates (1997)
list/menus (2000)
[WebDNA] To be or not to be friendly (URLs) (2011)
show all problem (1997)
WebCat2 beta 11 - new prefs ... (1997)
Thanks for Encrypt.tpl - A Question (1999)
Frames and WebCat (1997)
WebDNA Codes in Secure Mode (1997)
OT: Javascript Jump Menu [SOLVED] (2004)
Dynamic PDFs? (2004)
[OT] Bulk Email Software (2002)
WebCat for mass emailings (1997)