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] will change the [index] values (the positions of the rows in the db), just the values 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:

    
  1. Re: [REPLACE] inside [FOUNDITEMS] (Kenneth Grome 1998)
  2. Re: [REPLACE] inside [FOUNDITEMS] (Peter Ostry 1998)
  3. Re: [REPLACE] inside [FOUNDITEMS] (Michael Winston 1998)
  4. Re: [REPLACE] inside [FOUNDITEMS] (Kenneth Grome 1998)
  5. Re: [REPLACE] inside [FOUNDITEMS] (Bob Minor 1998)
  6. Re: [REPLACE] inside [FOUNDITEMS] (PCS Technical Support 1998)
  7. Re: [REPLACE] inside [FOUNDITEMS] (Michael Winston 1998)
  8. Re: [REPLACE] inside [FOUNDITEMS] (PCS Technical Support 1998)
  9. Re: [REPLACE] inside [FOUNDITEMS] (Dave MacLeay 1998)
  10. Re: [REPLACE] inside [FOUNDITEMS] (PCS Technical Support 1998)
  11. Re: [REPLACE] inside [FOUNDITEMS] (Kenneth Grome 1998)
  12. RE: [REPLACE] inside [FOUNDITEMS] (Olin 1998)
  13. [REPLACE] inside [FOUNDITEMS] (Michael Winston 1998)
  14. Re: [REPLACE] inside [FOUNDITEMS] (Dave MacLeay 1998)
  15. RE: [REPLACE] inside [FOUNDITEMS] (Olin 1998)
Maybe Grant can clarify this, but I don't believe that [replace] will change the [index] values (the positions of the rows in the db), just the values 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:

[WriteFile] problems (1997) [BULK] [WebDNA] Happy St. Patricks Day WEBDNA (2018) WC2.0 Memory Requirements (1997) WebCat2: Items xx to xx shown, etc. (1997) How To question on setting up downloads (1997) Is it possible to pause or wait a process (2000) HELP WITH DATES (1997) WebCat2b15MacPlugin - [protect] (1997) b12 cannot limit records returned and more. (1997) Extended [ConvertChars] (1997) [OT] Next Gen Browsers [Was] Decimal point in search.... (2004) Moment of Thanks (1997) Date errors? (1999) [WebDNA] [raw] tag with [interpret] question (2010) New Plug-in and Type 11 errors (1997) emailer w/F2 (1997) [Sum] function? (1997) Automatic [URL]ing by the webdna engine (2003) WebCat2 beta 11 - new prefs ... (1997) WebCat2 Append problem (B14Macacgi) (1997)