Re: serial number generation

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13781
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 nothing > >I 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]I can't get [math] to function on an included file. Any special tricks or tips? (yes I have tried both my own code and the code qutoed above) ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se 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 nothing > >I 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]I can't get [math] to function on an included file. Any special tricks or tips? (yes I have tried both my own code and the code qutoed above) ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se Christer Olsson

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:

WebCatlog vs ColdFusion White Paper (2000) writefile and texte (1997) Multiple Search Fields (1998) Formating found categories (1997) Error, 101 a DNS problem ? (1997) [taxRate] [TaxTotal] ? (1997) Where's Cart Created ? (1997) WebCatalog: Server Will not Stay up & running (2001) Running _every_ page through WebCat ? (1997) mass mailing (1998) Sort Order on a page search (1997) Setting up shop (1997) Writing to PDF (2003) UPDATE PROBLEM (1997) results in a table (2000) Re:no template caching (1997) bug in wn searching NT version? (1997) ACGI processing for .html (1997) Process SSI and WebCatalog.acgi (1998) Site Search Concepts (2003)