Re: unique ascending numbers
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 50195
interpreted = N
texte = I would guess that multiple cart numbers generated in the same epoc secondare not necessarily ascending due to the random (not ascending) charactersappended. Also, if one-per-second granularity is sufficient then why not useseconds since the epoc instead of the cart number? Another suggestion is tohave a database with a single item (or create a new entry in prefs.db): thenext available item number. (Be sure to lock the database file betweenretieval and update!)-Chris-----Original Message-----From: Joe D'Andrea [mailto:JoeDan@West21.com] Sent: Friday, May 09, 2003 2:12 PMTo: WebDNA-Talk@talk.smithmicro.comSubject: Re: unique ascending numbersAt 11:04 AM 5/9/03, Marc Kaiwi wrote:>...Yeah [cart] would be the perfect tool but I still need the>ascending set of numbers. Just out of curiosity I swear I thought >that [cart] used to produce an ever increasing number ...???Stop thinking of [cart] as a number. It sure do look like a number to you and me... but it ain't no number. It is unique and it is ascending, but it's not a number.~joe-- ____________________________________________________________Joseph D'Andrea ~ http://www.west21.com/ ~ JoeDan@West21.com WEST21.com Internet services for the 21st Century webhosting ~ co-location ~ wireless access WebCat and MGI database programming____________________________________________________________-------------------------------------------------------------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 toWeb Archive of this list is at: http://webdna.smithmicro.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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I would guess that multiple cart numbers generated in the same epoc secondare not necessarily ascending due to the random (not ascending) charactersappended. Also, if one-per-second granularity is sufficient then why not useseconds since the epoc instead of the cart number? Another suggestion is tohave a database with a single item (or create a new entry in prefs.db): thenext available item number. (Be sure to lock the database file betweenretieval and update!)-Chris-----Original Message-----From: Joe D'Andrea [mailto:JoeDan@West21.com] Sent: Friday, May 09, 2003 2:12 PMTo: WebDNA-Talk@talk.smithmicro.comSubject: Re: unique ascending numbersAt 11:04 AM 5/9/03, Marc Kaiwi wrote:>...Yeah [cart] would be the perfect tool but I still need the>ascending set of numbers. Just out of curiosity I swear I thought >that [cart] used to produce an ever increasing number ...???Stop thinking of [cart] as a number. It sure do look like a number to you and me... but it ain't no number. It is unique and it is ascending, but it's not a number.~joe-- ____________________________________________________________Joseph D'Andrea ~ http://www.west21.com/ ~ JoeDan@West21.com WEST21.com Internet services for the 21st Century webhosting ~ co-location ~ wireless access WebCat and MGI database programming____________________________________________________________-------------------------------------------------------------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 toWeb Archive of this list is at: http://webdna.smithmicro.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://webdna.smithmicro.com/
Chris List Recipient
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:
RAM variables (1997)
Can this be done? (1997)
remotely add + sign (1997)
FM PRO Compatibility Issue - Single Database w/o Conversions (1997)
MATH PROBLEM (1997)
shipCost (1998)
Loosing Quantity (2000)
Database cloning, or possible hack? (2003)
[Fwd: F3 database munching] (1997)
syntax question, not in online refernce (1997)
Store Example to Use (1998)
test (2005)
[WebDNA] Pages dying (2008)
taxTotal, grandTotal (1997)
[shownext max=?] armed (1997)
emailer w/F2 (1997)
StoreBuilder help/question... (2000)
[sendmail] and [formvariables] (1997)
RAM variables (1997)
E-mail loop ! (1997)