Re: Cart # Starting at 1000

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 30626
interpreted = N
texte = sorry - didn't see the post - I apologize..- Tony At 12:05 PM 4/19/00 -0600, you wrote: >Kenneth Grome answered that yesterday with the following > >In order to know the next >sequentially-numbered file name, you'll need to store the last one in >an include file named lastOrderName so you can use this code to set >the new file name and to update the lastOrderName value: > >[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] > > > > From: Tony Frenzel > > Reply-To: (WebCatalog Talk) > > Date: Wed, 19 Apr 2000 12:57:48 > > To: (WebCatalog Talk) > > Subject: Re: Cart # Starting at 1000 > > > > > >> I'll take a swing at this question... I'm guessing that the client wants a > >> _human-compatible_ invoice number. Oh sure, 37 digit numeric session > IDs are > >> a wonderful way to keep browsing sessions unique, but they make LOUSY > >> invoice numbers. Call an customer service number sometime, and tell them > >> your order was 3 0 0 6 8 34 75 6 45 ummm where was I, let me start > over 300 > >> 6 8 3 4 756 4 5 87 ... Are you seeing the point yet? > >> > >> :) > > > > > > EXACTLY - Ok, let me ask you this - screw the number that the cart > > generates... Since I'm doing a writefile tag anyway after I get all the > > info my client inputs, how can I name the file it writes so that each time > > a new file is written it goes up by on in numerical value? For example, > > 1000.txt, 1001.txt, 10002.txt, etc... > > > > > > Mr. Moo > > > > > > ------------------------------------------------------------- > > 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 > > > > >------------------------------------------------------------- >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 > ------------------------------------------------------------- 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)
sorry - didn't see the post - I apologize..- Tony At 12:05 PM 4/19/00 -0600, you wrote: >Kenneth Grome answered that yesterday with the following > >In order to know the next >sequentially-numbered file name, you'll need to store the last one in >an include file named lastOrderName so you can use this code to set >the new file name and to update the lastOrderName value: > >[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] > > > > From: Tony Frenzel > > Reply-To: (WebCatalog Talk) > > Date: Wed, 19 Apr 2000 12:57:48 > > To: (WebCatalog Talk) > > Subject: Re: Cart # Starting at 1000 > > > > > >> I'll take a swing at this question... I'm guessing that the client wants a > >> _human-compatible_ invoice number. Oh sure, 37 digit numeric session > IDs are > >> a wonderful way to keep browsing sessions unique, but they make LOUSY > >> invoice numbers. Call an customer service number sometime, and tell them > >> your order was 3 0 0 6 8 34 75 6 45 ummm where was I, let me start > over 300 > >> 6 8 3 4 756 4 5 87 ... Are you seeing the point yet? > >> > >> :) > > > > > > EXACTLY - Ok, let me ask you this - screw the number that the cart > > generates... Since I'm doing a writefile tag anyway after I get all the > > info my client inputs, how can I name the file it writes so that each time > > a new file is written it goes up by on in numerical value? For example, > > 1000.txt, 1001.txt, 10002.txt, etc... > > > > > > Mr. Moo > > > > > > ------------------------------------------------------------- > > 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 > > > > >------------------------------------------------------------- >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 > ------------------------------------------------------------- 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 Tony Frenzel

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:

Sorting error (1997) RE: HTTP Header info (1997) formatting dates from a field ... (1997) Clean Code: Rules for inserting keyboard returns? (1997) [SQL] & ODBC on Mac - Reposted (2000) Internet backup (2000) Choke # on Emailer (2002) WebCatalog stalls (1998) Location of Browser Info.txt file (1997) problems with 2 tags (1997) Date/Time format problems (1997) Resume Catalog ? (1997) Payflow Pro Jar (2002) (1998) Another option (2005) WebCat2: Formulas.db question (1997) Bcc in sendmail tag (2000) [Webcat 2]Next (1997) [WriteFile] problems (1997) Need help!! on searching in two databases. (1998)