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:
[search] in formulas.db (1997)
Replace/Commit not Replacing/Commiting (2000)
help testing quicktime delivery (1997)
[OT] Create a thumbnail image of a live webpage (2008)
Problems passing [SKU] with $Replace in 2.0 (1997)
WebCatalog/Mac 2.1b2 - PIXO (1997)
Listing Words Backwords (2001)
Sendmail truncation in Eudora Clients (1998)
2.01 upgrade problems (1997)
Setting up shop (1997)
setting cookies for another domain? (2002)
WebCatalog2 Feature Feedback (1996)
Weird problems with [SHOWIF]s (1997)
Bugs? What Bugs? was:Spawning Holdup? (2000)
Problems with [Applescript] (1997)
absolute paths for databases? (1997)
Netscape 3.01 can't see db in form (was problems problemsproblems) (1997)
[WebDNA] WebDNA install on Redhat 4 64 bit? (2008)
notification solutions (1997)
My Eyes doth deceive me (2002)