Re: Every other record deleted

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 63671
interpreted = N
texte = Grant Hulbert wrote: >>So the answer is to delete in reverse order.. >> >>Works for me after falling into the trap that Brian has just described. > > > The other way is to set the search criteria in your delete tag to match all the records you want to delete at once. There's no need to delete records one-at-a-time inside a FoundItems loop, since the search criteria in the FoundItems loop is the same search criteria you could use for the delete tag itself. Wherever possible, get rid of the outer [Search] and [FoundItems] entirely, and use a single [Delete] to erase records all at once. It's faster, and does not run into this every-other-record thing. Grant, right, and so far (from the posted code) there is no indication that Dan has used [index] within a founditems loop to delete anything. This is why I suggested doing a global find for a text match within a file... That type of "find" has a specific name which escapes me right now. It appears to me that there is other code that is causing his problem. Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Custom Paint, Labels, and Specialty Signage. -> <- Home and Business Embellishment/Fabrication, -> <- Glass Blowing, and Art Glass -> PH/FAX:> 1 (608) 835-2476 Web:> http://www.egg.bz | http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Every other record deleted ( Donovan Brooke 2005)
  2. Re: Every other record deleted ( Peter Ostry 2005)
  3. Re: Every other record deleted ( Grant Hulbert 2005)
  4. Re: Every other record deleted ( Stuart Tremain 2005)
  5. Re: Every other record deleted ( Brian Fries 2005)
  6. Re: Every other record deleted ( Jesse Proudman 2005)
  7. Re: Every other record deleted ( Jesse Proudman 2005)
  8. Re: Every other record deleted ( "Dan Strong" 2005)
  9. Re: Every other record deleted ( Donovan Brooke 2005)
  10. Re: Every other record deleted ( "Dan Strong" 2005)
  11. Re: Every other record deleted ( Donovan Brooke 2005)
  12. Re: Every other record deleted ( "Dan Strong" 2005)
  13. Re: Every other record deleted ( "Eric Miller" 2005)
  14. Every other record deleted ( "Dan Strong" 2005)
Grant Hulbert wrote: >>So the answer is to delete in reverse order.. >> >>Works for me after falling into the trap that Brian has just described. > > > The other way is to set the search criteria in your delete tag to match all the records you want to delete at once. There's no need to delete records one-at-a-time inside a FoundItems loop, since the search criteria in the FoundItems loop is the same search criteria you could use for the delete tag itself. Wherever possible, get rid of the outer [search] and [founditems] entirely, and use a single [delete] to erase records all at once. It's faster, and does not run into this every-other-record thing. Grant, right, and so far (from the posted code) there is no indication that Dan has used [index] within a founditems loop to delete anything. This is why I suggested doing a global find for a text match within a file... That type of "find" has a specific name which escapes me right now. It appears to me that there is other code that is causing his problem. Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Custom Paint, Labels, and Specialty Signage. -> <- Home and Business Embellishment/Fabrication, -> <- Glass Blowing, and Art Glass -> PH/FAX:> 1 (608) 835-2476 Web:> http://www.egg.bz | http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Donovan Brooke

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:

hideif/showif causes error if wrapped around searches (2003) WebCat2b15MacPlugin - [protect] (1997) WebCat2.0 [format thousands .0f] no go (1997) Generating unique SKU from [cart] (1997) The force has left me. (2002) Emailer setup (1997) Version 4 (2000) Word wrapping (1997) Frames and WebCat (1997) Forum - Test Request (2005) Hiding HTML and page breaks (1997) RE: pop up building with summarize (1998) Nested Loops and SHOWIFs (1997) Fun with dates (1997) Apoligy (1997) [WebDNA] seconds_to_time (2017) Sendmail truncation in Eudora Clients (1998) sort problems....bug or brain fart? (1997) Separate SSL Server (1997) Exclamation (2002)