Re: Are [CART]'s always > Previous [CART]'s

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 31030
interpreted = N
texte = Thanks Ken. I guess for a unique *number* solution I'll have to make a little counter.db and increment it every time. That seems to be the simplest way. Am I missing something obvious, or is that the way to go?Brian Digital Gear> >I know that [CART] always generates a unique number ... > >That's where your interpretation of the cart value is wrong. > >The [cart] tag generates a unique *character string* which just >happens to be made up of numeric characters. And while this string of >characters is always alphabetically greater than the last value the >[cart] tag generated, you cannot assume that it is also going to be >numerically greater than the last value generated, because as you >have seen it just doesn't work that way ... :) > >================================ >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 > ------------------------------------------------------------- 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: Are [CART]'s always > Previous [CART]'s (Kenneth Grome 2000)
  2. Re: Are [CART]'s always > Previous [CART]'s (Brian Wallace 2000)
  3. Re: Are [CART]'s always > Previous [CART]'s (Kenneth Grome 2000)
  4. Are [CART]'s always > Previous [CART]'s (Brian Wallace 2000)
Thanks Ken. I guess for a unique *number* solution I'll have to make a little counter.db and increment it every time. That seems to be the simplest way. Am I missing something obvious, or is that the way to go?Brian Digital Gear> >I know that [cart] always generates a unique number ... > >That's where your interpretation of the cart value is wrong. > >The [cart] tag generates a unique *character string* which just >happens to be made up of numeric characters. And while this string of >characters is always alphabetically greater than the last value the >[cart] tag generated, you cannot assume that it is also going to be >numerically greater than the last value generated, because as you >have seen it just doesn't work that way ... :) > >================================ >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 > ------------------------------------------------------------- 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 Brian Wallace

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:

Bug or syntax error on my part? (1997) Image upload (2000) [WebDNA] Crashing Database (2011) encrypting (2000) Include vs. lookup? (1998) Nested vs conditional (1997) Textarea Breaks (2000) Search Context Strips URL chrs.? (1999) More news on 5.0 (2003) Convert Chars Q (2000) Looking for a Manual (1997) New Featured Site (1999) WebMerchant 1.6 and SHTML (1997) Changes to the List (1997) quit command on NT (1997) RE: MacFinder -- a new WebDNA web site (1998) SQL Support in 6.0 (2004) (no subject) (1997) autocommit problem (1998) Multi Colonns (1998)