Re: Cart # Starting at 1000

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 30756
interpreted = N
texte = > >[waitforfile file=Orders/[cart]] > >[math show=f]newOrderName=1+[include file=lastOrderName][/math] > >[movefile from=Orders/[cart]&to=Orders/[newOrderName]] > >[writefile file=lastOrderName][newOrderName][/writefile] > >[/waitforfile] >> >>Ok, now, because I'm slow at all of this, I'm getting confused. When you >say newOrderName below is that what I want it to be named, or is that >like a tag in this code were it has to be newordername?Yes, it's a math variable I created right there on the page. This is explained in the HTML docs ... >Can you give me example using fictitious file names? Also, what if >I have, or want .txt extensions for my file name.You can use any file names you want, as long as the OS can handle them. Before you said you wanted the files to be named as sequentially-increasing numbers beginning at 1000, so If you changed your mind and now you want .txt appended to the end of the numeric part of the name, you should probably use this code instead:[waitforfile file=Orders/[cart]] [math show=f]newOrderNum=1+[include file=lastOrderNum][/math] [movefile from=Orders/[cart]&to=Orders/[newOrderNum].txt] [writefile file=lastOrderNum][newOrderNum][/writefile] [/waitforfile]WebCatalog is not a simple thing to master, it takes a lot of time and commitment, and nothing can replace the experience of writing your own code while constantly referring to the HTML docs. You must never stop using the HTML docs, and reading the manual dozens of times helps as well ... :) ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- 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: Cart # Starting at 1000 (Kenneth Grome 2000)
  2. Re: Cart # Starting at 1000 (Paul Fowler 2000)
  3. Re: Cart # Starting at 1000 (Tony Frenzel 2000)
  4. Re: Cart # Starting at 1000 (Kenneth Grome 2000)
  5. Re: Cart # Starting at 1000 (Tony Frenzel 2000)
  6. Re: Cart # Starting at 1000 (Kenneth Grome 2000)
  7. Re: Cart # Starting at 1000 (Tony Frenzel 2000)
  8. Re: Cart # Starting at 1000 (Kenneth Grome 2000)
  9. Re: Cart # Starting at 1000 (Tony Frenzel 2000)
  10. Re: Cart # Starting at 1000 (Tony Frenzel 2000)
  11. Re: Cart # Starting at 1000 (Paul Fowler 2000)
  12. Re: Cart # Starting at 1000 (Tony Frenzel 2000)
  13. Re: Cart # Starting at 1000 (WebDNA Support 2000)
  14. Re: Cart # Starting at 1000 (Brian B. Burton 2000)
  15. Re: Cart # Starting at 1000 (WebDNA Support 2000)
  16. Re: Cart # Starting at 1000 (Tony Frenzel 2000)
  17. Re: Cart # Starting at 1000 (Kenneth Grome 2000)
  18. Re: Cart # Starting at 1000 (WebDNA Support 2000)
  19. Cart # Starting at 1000 (Tony Frenzel 2000)
> >[waitforfile file=Orders/[cart]] > >[math show=f]newOrderName=1+[include file=lastOrderName][/math] > >[movefile from=Orders/[cart]&to=Orders/[newOrderName]] > >[writefile file=lastOrderName][newOrderName][/writefile] > >[/waitforfile] >> >>Ok, now, because I'm slow at all of this, I'm getting confused. When you >say newOrderName below is that what I want it to be named, or is that >like a tag in this code were it has to be newordername?Yes, it's a math variable I created right there on the page. This is explained in the HTML docs ... >Can you give me example using fictitious file names? Also, what if >I have, or want .txt extensions for my file name.You can use any file names you want, as long as the OS can handle them. Before you said you wanted the files to be named as sequentially-increasing numbers beginning at 1000, so If you changed your mind and now you want .txt appended to the end of the numeric part of the name, you should probably use this code instead:[waitforfile file=Orders/[cart]] [math show=f]newOrderNum=1+[include file=lastOrderNum][/math] [movefile from=Orders/[cart]&to=Orders/[newOrderNum].txt] [writefile file=lastOrderNum][newOrderNum][/writefile] [/waitforfile]WebCatalog is not a simple thing to master, it takes a lot of time and commitment, and nothing can replace the experience of writing your own code while constantly referring to the HTML docs. You must never stop using the HTML docs, and reading the manual dozens of times helps as well ... :) ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- 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:

[WebDNA] location line item change password (2011) Grep help needed (2004) [WebDNA] OT: FCKeditor (2008) multi-paragraph fields (1997) FM 4.1 and Webcat? (1998) 2 easy questions re: [showif] and [sendmail] (1997) Location of Browser Info.txt file (1997) select multiple 2 more cents (1997) WebDelivery downloads alias, not original ? (1997) RE: Missing contexts on NT (1997) [carts] and databases (1997) Username/Password with [Protect] (2000) Help! WebCat2 bug (1997) Emailer and Lack of Code Commenting (1999) What's a domain? (2003) WebCat2 - storing unformatted date data? (1997) Mozilla/4. and Browser Info.txt (1997) Help name our technology! (1997) WebCat Code and WebStar Search? (2000) shipcost (1997)