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:

lookups or math? (1998) Running 2 two WebCatalog.acgi's (1996) PSC recommends what date format yr 2000??? (1997) [group] ? (1997) URGENT - Server dying on me.... (2004) WebCommerce: Folder organization ? (1997) Version 4? (2000) YACBQ.....(Yet another checkbox question) (2000) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Mac Vs WindowsNT (1997) SMSI: closedatabase then replacefounditems inside the same search context ... (2002) Browser frames and URLs in the Location field (2004) two domains and one cart and database (2000) WebCat B13 Mac CGI -- Frames question (1997) where to put code (1998) More DateMath problems (1997) How to append text after the sign & (1997) RE: Can a database get stomped by simultaneous access? (1997) Merging databases (1997) default error on NT? (1997)