Re: strange problem listfiles and movefile

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 28206
interpreted = N
texte = On 2/28/00 4:01 pm, Eric Ridgley so noted...>Here is the code: > >[listfiles ../Orders] >[showif [isfile]=T] >[hideif [filename]=/] > >[movefile >from=../Orders/[filename]&to=ProcessedOrders/[order_folder]/[filename]] > >[/hideif] >[/showif] >[/listfiles] > >The Problem is that the code initially sees all the carts in the orders >folder (code checks earlier) but then when it gets to this section it only >moves some of them. I have to keep executing the code to get all the carts >to be moved. Any ideas? I've checked all my code and everything looks >semantically correct. I even added a [waitforfile] but to no avail.I didn't test it, but it sounds like a similar problem to what happens when you try to delete items inside a [lineitems] loop. If so, how about trying something like this to record the filenames, then do the move outside the [listfiles]?[math show=f]fileNum=0[/math][listfiles ../Orders] [showif [isfile]=T] [hideif [filename]=/] [text]file[math]fileNum=[fileNum]+1[/math]=[filename][/text] [/hideif] [/showif] [/listfiles][hideif [fileNum]=0] [loop start=1&end=[fileNum]] [movefile from=../Orders/[interpret][file[index]][/interpret]&to=ProcessedOrders/[ord er_folder]/[interpret][file[index]][/interpret]] [/loop] [/hideif]Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- 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 (WebDNA Support 2000)
  2. Re: strange problem listfiles and movefile (Eric Ridgley 2000)
  3. Re: strange problem listfiles and movefile (WebDNA Support 2000)
  4. Re: strange problem listfiles and movefile (Rob Marquardt 2000)
  5. strange problem listfiles and movefile (Eric Ridgley 2000)
  6. Re: strange problem listfiles and movefile (long) (Kenneth Grome 2000)
  7. Re: strange problem listfiles and movefile (long) (Dale Therio 2000)
  8. Re: strange problem listfiles and movefile (long) (Kenneth Grome 2000)
  9. strange problem listfiles and movefile (long) (Dale Therio 2000)
On 2/28/00 4:01 pm, Eric Ridgley so noted...>Here is the code: > >[listfiles ../Orders] >[showif [isfile]=T] >[hideif [filename]=/] > >[movefile >from=../Orders/[filename]&to=ProcessedOrders/[order_folder]/[filename]] > >[/hideif] >[/showif] >[/listfiles] > >The Problem is that the code initially sees all the carts in the orders >folder (code checks earlier) but then when it gets to this section it only >moves some of them. I have to keep executing the code to get all the carts >to be moved. Any ideas? I've checked all my code and everything looks >semantically correct. I even added a [waitforfile] but to no avail.I didn't test it, but it sounds like a similar problem to what happens when you try to delete items inside a [lineitems] loop. If so, how about trying something like this to record the filenames, then do the move outside the [listfiles]?[math show=f]fileNum=0[/math][listfiles ../Orders] [showif [isfile]=T] [hideif [filename]=/] [text]file[math]fileNum=[fileNum]+1[/math]=[filename][/text] [/hideif] [/showif] [/listfiles][hideif [fileNum]=0] [loop start=1&end=[fileNum]] [movefile from=../Orders/[interpret][file[index]][/interpret]&to=ProcessedOrders/[ord er_folder]/[interpret][file[index]][/interpret]] [/loop] [/hideif]Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- 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 Rob Marquardt

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:

Changing price for a SLU based on options (size, etc.) (1997) [OT] Robust order processing (2003) [convertChars] and in a textarea on a form (1998) Explorer 3.0/ Access Denied! (1997) WebStar and CopyFile (2000) WebCatalog seems to choke on large (2meg) html files. (1998) Error -108 (1997) [OT] CSS and SSI books (2004) japanese characters (1997) finding child records of child records of child records... with minimal code (2000) Database Updates (1997) REPOST: Upgrage pricing... The future of WebCatalog is coming with 4.0... (2000) retain raw [cart] submitted value (2004) Another option (2005) Include a big block of text (1997) % (mod) was looping table rows (1999) Re:quit command on NT (1997) SMSI: WebDNA Versions? (2002) my price won't move (1997) Hard Questions ? (1997)