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-timeinside a FoundItems loop, since the search criteria in the FoundItems loop isthe same search criteria you could use for the delete tag itself. Whereverpossible, get rid of the outer [Search] and [FoundItems] entirely, and usea single [Delete] to erase records all at once. It's faster, and does notrun into this every-other-record thing.Grant, right, and so far (from the posted code) there is no indication thatDan has used [index] within a founditems loop to delete anything. This iswhy 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:
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-timeinside a FoundItems loop, since the search criteria in the FoundItems loop isthe same search criteria you could use for the delete tag itself. Whereverpossible, get rid of the outer [search] and [founditems] entirely, and usea single [delete] to erase records all at once. It's faster, and does notrun into this every-other-record thing.Grant, right, and so far (from the posted code) there is no indication thatDan has used [index] within a founditems loop to delete anything. This iswhy 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)