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/[order_folder]/[interpret][file[index]][/interpret]][/loop][/hideif]Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.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:
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/[order_folder]/[interpret][file[index]][/interpret]][/loop][/hideif]Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.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:
Date search - yes or no (1997)
How to get shownext to just shownext once (1997)
Sort Order on a page search (1997)
Roundup function? (1997)
Linux ODBC and the ODBC Bridge (2000)
problem with NT beta (1997)
[WebDNA] Cicada - WebDNA_CICADA_6.1.b02 - gratz and request...! (2009)
[INCLUDE] Limitations (1998)
Version f1 status (1997)
Can you do this??? and other stuff (1997)
Misunderstanding?? (1997)
WC 3.0.1 Mac days_to_date (1998)
Installing on IIS 5.1 Windows XP Pro - Username/Password (2006)
How fast is your server? (2002)
Wanted: More Math Functions (or, Can You Solve This?) (1997)
Restoring textarea stored in header (1998)
two unique banners on one page (1997)
Emailer Chokes on bad address (1997)
WebDNA can't be controlled from terminal (2004)
How can I record purchases to a database? (1998)