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:

WCS Newbie question (1997) expired beta (1997) Question from a Neebie (2000) WebCat2final1 crashes (1997) [Off] Netscape Display Problem (1998) WebCat Admin access w/ClearlyHome p.i. (1997) WC 2.0 frames feature (1997) Configuring E-mail (1997) switching users (1998) [CART] (1997) Setting up WebCatalog with Retail Pro data (1996) Append command (2000) Secure server question (1997) Deleting Orders (1997) Reversed words (1997) IIS4 (1998) Showif, Hideif reverse logic ? (1997) hidden (phantom) file downloads (2000) THANKS!!! ShipCosts.db and debugging (1997) OT New use for WebCat (1998)