Re: old problem

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39948
interpreted = N
texte = on 11/7/01 4:13 am, Laeg Ent. at laeg_enterprises@yahoo.co.uk so noted...> Did this code work for you? Its not working for me at > all. I've held the code on its own in a file, and > tested it just typing the URL into a browser and no > joy. No files are deleted(that should be deleted). > This really has me baffled as all different approaches > to date have not worked.Yes, the code works on my development server here (MacOS 9.2.1, WebTen 3.0.4, WebCat PI 4.0.2rc2). It's laid out like this.Root directory contains:index.html orders/ index.html is:[math show=f]delTotal=0[/math][search db=orders/filelist.db&neFilenamesData=[blank]][founditems] [text]delFile=T[/text] [listfiles path=orders] [showif [filename]=[filenames]] [text]delFile=F[/text] [/showif] [/listfiles] [showif [delFile]=T] [math show=F]delTotal=[delTotal]+1[/math] [text]delFile[delTotal]=[filenames][/text] [/showif] [/founditems][/search][loop start=1&end=[delTotal]] [delete db=orders/filelist.db&eqFILENAMESdata=[text]delFile[index][/text]] [/loop] The orders directory contains:(a dozen text files) filelist.db filelist.hdr filelist.hdr is:filenames<> filelist.db has the names of all the text files in the orders directory and five other names that *don't* exist there. Hitting the index.html page removes the five non-matching names from filelist.db. Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f http://www.toastdesign.com ------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Old Problem, the exclamation point (Terry Wilson 2014)
  2. Re: [WebDNA] Old Problem, the exclamation point (Terry Wilson 2014)
  3. Re: [WebDNA] Old Problem, the exclamation point (Donovan Brooke 2014)
  4. Re: [WebDNA] Old Problem, the exclamation point (Terry Wilson 2014)
  5. Re: [WebDNA] Old Problem, the exclamation point (Steve Braun 2014)
  6. Re: [WebDNA] Old Problem, the exclamation point (Terry Wilson 2014)
  7. Re: [WebDNA] Old Problem, the exclamation point (Donovan Brooke 2014)
  8. Re: [WebDNA] Old Problem, the exclamation point (Steve Braun 2014)
  9. Re: [WebDNA] Old Problem, the exclamation point (Tom Duke 2014)
  10. [WebDNA] Old Problem, the exclamation point (Steve Braun 2014)
  11. Re: old problem (Brian Fries 2001)
  12. Re: old problem (Rob Marquardt 2001)
  13. Re: old problem (Laeg Ent. 2001)
  14. Re: old problem (Laeg Ent. 2001)
  15. Re: old problem (Rob Marquardt 2001)
  16. Re: old problem (Laeg Ent. 2001)
  17. Re: old problem (Rob Marquardt 2001)
  18. old problem (Laeg Ent. 2001)
  19. Re: OLD PROBLEM (bob 1997)
  20. OLD PROBLEM (natasha 1997)
on 11/7/01 4:13 am, Laeg Ent. at laeg_enterprises@yahoo.co.uk so noted...> Did this code work for you? Its not working for me at > all. I've held the code on its own in a file, and > tested it just typing the URL into a browser and no > joy. No files are deleted(that should be deleted). > This really has me baffled as all different approaches > to date have not worked.Yes, the code works on my development server here (MacOS 9.2.1, WebTen 3.0.4, WebCat PI 4.0.2rc2). It's laid out like this.Root directory contains:index.html orders/ index.html is:[math show=f]delTotal=0[/math][search db=orders/filelist.db&neFilenamesData=[blank]][founditems] [text]delFile=T[/text] [listfiles path=orders] [showif [filename]=[filenames]] [text]delFile=F[/text] [/showif] [/listfiles] [showif [delFile]=T] [math show=F]delTotal=[delTotal]+1[/math] [text]delFile[delTotal]=[filenames][/text] [/showif] [/founditems][/search][loop start=1&end=[delTotal]] [delete db=orders/filelist.db&eqFILENAMESdata=[text]delFile[index][/text]] [/loop] The orders directory contains:(a dozen text files) filelist.db filelist.hdr filelist.hdr is:filenames<> filelist.db has the names of all the text files in the orders directory and five other names that *don't* exist there. Hitting the index.html page removes the five non-matching names from filelist.db. Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f http://www.toastdesign.com ------------------------------------------------------------- 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://search.smithmicro.com/ 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:

[WebDNA] [Test] sorry, last one (2009) totals (1997) Will webdna execute before a [redirect]? (1999) Format question WC Mac f3 (1997) webcat- multiple selection in input field (1997) Bug? (1997) Trigger problem (2003) # fields limited? (1997) Another question (1997) Problems deleting when a search field is blank... (1998) Web Catalog vs. ICAT (1997) delete some html code (2007) Searching Relational Databases (2004) AutoCommit Preference? (1998) Car Database (2002) Add message to Order (1997) [WriteFile] problems (1997) encrypt/decrypt actin' funny but I don't know why... (2000) Authenticate (1997) WebCommerce Security Alert! (1996)