Re: Cart # Starting at 1000
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 30625
interpreted = N
texte = Kenneth Grome answered that yesterday with the followingIn order to know the nextsequentially-numbered file name, you'll need to store the last one inan include file named lastOrderName so you can use this code to setthe 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
Associated Messages, from the most recent to the oldest:
Kenneth Grome answered that yesterday with the followingIn order to know the nextsequentially-numbered file name, you'll need to store the last one inan include file named lastOrderName so you can use this code to setthe 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
Paul Fowler
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:
Too many wrong answers! (1998)
[searchString] (1997)
WebCat2b12plugin - [search] is broken ... not! (1997)
Multiple Pulldowns (1997)
Ampersand (1997)
Online reference (1997)
[WebDNA] Technical References (2009)
Can WebDNA do this? (2000)
WebCatalog Use Question (1997)
Sendmail truncation in Eudora Clients (1998)
Speaking of mysql... sqlexecute question (2006)
strange IE 4.0 (1998)
Custom error files (1998)
REPOST: How do _you_ back up your db? (2000)
No Line Breaks from OSX server (2002)
Mult-File Upload w/ Web Star (2000)
Stupid Format grrrrrrrr.... (2004)
PSC recommends what date format yr 2000??? (1997)
Version 2.1.3 changes ... (1998)
default error on NT? (1997)