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:
rn doesn't work on date fields (1998)
Cold Fusion Buster (1997)
WCS Newbie question (1997)
WebCat2 several catalogs? (1997)
Nested tags count question (1997)
Pithy questions on webcommerce & siteedit (1997)
[isfolder] and [filename] (1997)
WebTen Type 2 Crash on start (2000)
Unexpected comparison behavior change in 4.5.1 (2003)
WebCat2 - Getting to the browser's username/password data (1997)
Am I going senile? (Price recalc based on quantity) (1997)
Show if time tags (1997)
How do I get Google to crawl a WebCat site? (2003)
Download Question (1997)
bug in [SendMail] (1997)
WC2f3 (1997)
[ShowIf] and empty fields (1997)
Image maps/Webcat (1997)
[carts] and databases (1997)
Bug Report, maybe (1997)