Re: Assigning carts

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17053
interpreted = N
texte = >On 4/14/98 10:58 PM, Kenneth Grome wrote: > >>This should work too ... >> >>[founditems] >>UniqueNumber = [cart][index] >>[/founditems] > >I just wasn't sure that either of these would guarantee a unique number, >not knowing how the number was generated. So I went like this. > >[founditems] >[writefile [index]A[cart]] >blah blah blah >[/founditems] > >I was worried that the cart could possibly generate a duplicate just >adding 1 digit to the end.Yes, actually you're right, since the cart does NOT always have the same number of digits, your method of adding an alphabetic character will do the trick better ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: Assigning carts (Kenneth Grome 1998)
  2. Re: Assigning carts (Bob Minor 1998)
  3. Re: Assigning carts (Kenneth Grome 1998)
  4. Re: Assigning carts (PCS Technical Support 1998)
  5. Assigning carts (bob 1998)
>On 4/14/98 10:58 PM, Kenneth Grome wrote: > >>This should work too ... >> >>[founditems] >>UniqueNumber = [cart][index] >>[/founditems] > >I just wasn't sure that either of these would guarantee a unique number, >not knowing how the number was generated. So I went like this. > >[founditems] >[writefile [index]A[cart]] >blah blah blah >[/founditems] > >I was worried that the cart could possibly generate a duplicate just >adding 1 digit to the end.Yes, actually you're right, since the cart does NOT always have the same number of digits, your method of adding an alphabetic character will do the trick better ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

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:

[WebDNA] User Management System [Cookie] (2008) Help! WebCat2 bug (1997) setlineitem quantity to zero? (2000) Associative lookup style? + bit more (1997) Search Command, multiple dbs, etc. --still confused (2000) WebCat2 beta 11 - new prefs ... (1997) SiteGuard Use Question (1997) Show new (2003) How to search for fields with 10 or more characters? (2004) Sendmail and attachments? (1998) Emailer [cart] file names (1997) an easy one... (2000) Showif, Hideif reverse logic ? (1997) No comment (1997) triggers.db (1999) What really killed WebDNA? (2007) Way Off Topic (2003) Re:WebCat for mass emailings (1997) [protect] on NT? (1997) WebCat 3? (2000)