Re: serial number generation

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13678
interpreted = N
texte = >>[writefile SerialNumber][math][include SerialNumber]+1][/math][/writefile] > >Every time I try to use it the file SerialNumber is resetted to empty. > >When I put a value into the file like 10, the first time I use [include >SerialNumber] I do get the value 10 but after the writefile code is >encountered the file is emptyied and the others calls to the [include >SerialNumber] return nothingI think the outer WriteFile is clearing the file before it has a chance to be included. Ken's may have worked because he's probably using template caching to store the file in RAM. Try[math]x=[include SerialNumber]+1[/math] [writefile SerialNumber][math]x[/math][/WriteFile]Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: serial number generation (ltpladys 1997)
  2. Re: serial number generation (John Hill 1997)
  3. Re: serial number generation (Christer Olsson 1997)
  4. Re: serial number generation (Grant Hulbert 1997)
  5. Re: serial number generation (ltpladys 1997)
  6. Re: serial number generation (Kenneth Grome 1997)
  7. serial number generation (ltpladys 1997)
>>[writefile SerialNumber][math][include SerialNumber]+1][/math][/writefile] > >Every time I try to use it the file SerialNumber is resetted to empty. > >When I put a value into the file like 10, the first time I use [include >SerialNumber] I do get the value 10 but after the writefile code is >encountered the file is emptyied and the others calls to the [include >SerialNumber] return nothingI think the outer WriteFile is clearing the file before it has a chance to be included. Ken's may have worked because he's probably using template caching to store the file in RAM. Try[math]x=[include SerialNumber]+1[/math] [writefile SerialNumber][math]x[/math][/WriteFile]Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Grant Hulbert

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:

[WriteFile] problems (1997) SMSI (Scott) clues?? Bug fixes for next WebDNA release (2005) For those of you not on the WebCatalog Beta... (1997) Problems getting parameters passed into email. (1997) Bill To - Ship To Information display (1997) Passing Variables.. yikes, I'm dumb (2000) Conditional searching & displaying (1997) Getting Emailer to send mail (1997) Showif = stumped? (2001) WebCat2 - storing unformatted date data? (1997) Adding extra coding on the fly? (2005) [WebDNA] WebDNA 7.0 release for the talk-list users (2011) triggers.db (1999) [OT] Hacked IIS/FTP (2002) Sorting LISTFILES (1997) Append problem w/" (1999) related data (2003) Problems with upload / WebCat (1998) WebCommerce: Folder organization ? (1997) [searchString] (1997)