Re: strange problem listfiles and movefile (long)

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 27967
interpreted = N
texte = >Following is the code used to move some newly uploaded images to the proper >place on my server based on information in a database. > >What happens is that if there are 200 images in the folder this template >only moves about 120 of them and stops - no error messages or anything, it >simply moves a little over half of the images each time. > >I am sure it is something I am doing incorrectly. Yes, you're right. Do*NOT* do appends or deletes inside a founditems context when you're appending to or deleting from the same database the founditems records come from.The records inside the founditems contexts are identified by the index number, and if you add or remove records to/from that db while inside the founditems context, the new index value for some records will be different from what it was originally, and you'll get unexpected results. Instead, you should always append and delete OUTSIDE the founditems context.>Any suggestions for optimizing what I have would be appreciated.Why dont you store images in one folder -- or one set of subfolders -- instead of complicating things with this hierarchy system?================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Associated Messages, from the most recent to the oldest:

    
  1. Re: strange problem listfiles and movefile (long) (Kenneth Grome 2000)
  2. Re: strange problem listfiles and movefile (long) (Dale Therio 2000)
  3. Re: strange problem listfiles and movefile (long) (Kenneth Grome 2000)
  4. strange problem listfiles and movefile (long) (Dale Therio 2000)
>Following is the code used to move some newly uploaded images to the proper >place on my server based on information in a database. > >What happens is that if there are 200 images in the folder this template >only moves about 120 of them and stops - no error messages or anything, it >simply moves a little over half of the images each time. > >I am sure it is something I am doing incorrectly. Yes, you're right. Do*NOT* do appends or deletes inside a founditems context when you're appending to or deleting from the same database the founditems records come from.The records inside the founditems contexts are identified by the index number, and if you add or remove records to/from that db while inside the founditems context, the new index value for some records will be different from what it was originally, and you'll get unexpected results. Instead, you should always append and delete OUTSIDE the founditems context.>Any suggestions for optimizing what I have would be appreciated.Why dont you store images in one folder -- or one set of subfolders -- instead of complicating things with this hierarchy system?================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Kenneth Grome

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:

Hiding HTML and page breaks (1997) Online reference (1997) UPS AVS tools (2003) Looking up two prices in database? (1997) [SearchString] problem with [search] context (1997) Ok here is a question? (1997) [WebDNA] Sort Direction matches the written to file order (2015) Help formatting search results w/ table (1997) Re:Help name our technology! (1997) PSC recommends what date format yr 2000??? (1997) wrong authentication (1998) Help!!!! (1997) WebCat Contest Please Clarify (1998) find with exceptions (1997) NT Version on IIS 4.0 (1997) Insert Line Feed Character (2004) [isfile] ? (1997) Snake Bites (1997) bug in [SendMail] (1997) Help formatting search results w/ table (1997)