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:
Re2: Calculating multiple shipping... (1997)
a new bug? (1999)
Hiding usernames and passwords in URL (1998)
In Digest Dijon (2000)
WebCatalog can't find database (1997)
I am dumb. No see [variable] (2003)
Credit card arrangement (2005)
WCS Newbie question (1997)
Initiating NewCart (1997)
WebCat2b15MacPlugin - showing [math] (1997)
Exists? (1997)
[WebDNA] Listfiles and sort order (2010)
Triggers (2004)
WebCatalog 2.0 & WebDNA docs in HTML ... (1997)
[Way OT] Workstation Security (2002)
all records returned. (1997)
Re[2]: 2nd WebCatalog2 Feature Request (1996)
F2 to F3 rocky transition (1997)
Navigator 4.01 (1997)
Country & Ship-to address & other fields ? (1997)