Re: generating unique IDs
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 30500
interpreted = N
texte = On 4/11/00 10:52 AM, Nico at tmpx1@hotmail.com wrote:> on 11/04/2000 15:21, Phil Marshall at phil@signalz.com wrote:> >> QUESTIONS:>> 1. Can I continue to assume this in my future on MacOS X?>> 2. Is there a better way to create unique record IDs?> > 1: No. Don't assume anything, if you don't have to :)> 2: You should allways use the [cart] builting WebDNA function for making> unique ID's. Each call to it will return an ID that is guaranteed to be> unique. Thus, you can replace all that code you use now with [cart].I prefer using [cart][date %Y%m%D%H%M%S] to generate the SKU value just incase I forget to dispose of the [cart] variable after adding a record orship my code to another server which could conceivably cough up a [cart]that already existed on the previous server. Having a 24-digit SKU mightseem like overkill, but it definitely avoids the bad juju from having aduplicate SKU.-- Andrew Vernonavernon@dramatols.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:
On 4/11/00 10:52 AM, Nico at tmpx1@hotmail.com wrote:> on 11/04/2000 15:21, Phil Marshall at phil@signalz.com wrote:> >> QUESTIONS:>> 1. Can I continue to assume this in my future on MacOS X?>> 2. Is there a better way to create unique record IDs?> > 1: No. Don't assume anything, if you don't have to :)> 2: You should allways use the [cart] builting WebDNA function for making> unique ID's. Each call to it will return an ID that is guaranteed to be> unique. Thus, you can replace all that code you use now with [cart].I prefer using [cart][date %Y%m%D%H%M%S] to generate the SKU value just incase I forget to dispose of the [cart] variable after adding a record orship my code to another server which could conceivably cough up a [cart]that already existed on the previous server. Having a 24-digit SKU mightseem like overkill, but it definitely avoids the bad juju from having aduplicate SKU.-- Andrew Vernonavernon@dramatols.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
Andrew Vernon
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:
The Best Shopping Cart Solution I Have Come Upon (2003)
[WebDNA] WebDNA Showcase? (2008)
[WebDNA] [OT] WebDNA Wiki - need grammar check / suggestions (2009)
Passing a search through a form (2003)
Code shows all, but should not (2003)
an easy one... (2000)
search same field twice??? (1999)
Simple counter - how? (1997)
WC Host List (2000)
[OT] Search Engine Tips (2003)
WC 2.0 frames feature (1997)
Trigger: executes every N days (2001)
formatting a number (1999)
Click-through/Referral tracking solution needed (2000)
WebCat2: Items xx to xx shown, etc. (1997)
ReturnRaw (1999)
Middle Context (2002)
Calculating multiple shipping... (1997)
Closing Databases (1998)
Error & Problem (1997)