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, WebMerchant11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>>[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, WebMerchant11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMasterSan Diego, CA 92128 | SiteGuard619/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:
suffix mapping for NT? (1997)
webcat plugin issue (2001)
trouble updating records in database (1998)
Exists? (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
WebMerchant? (1998)
WebCatalog for Postcards ? (1997)
Emailer port change (1997)
unable to run webcatalog locally (1998)
Tax on Shipping question (1998)
Practical Uses (2003)
Null Characters (2005)
searching with groups (1997)
Great product and great job ! (1997)
The List is Changing (1997)
WebTEN vs webSTAR (1998)
Shared databases (2003)
Dummy Credit Card Number for debug? (1997)
HTML text cannot be copied to clipboard? (1999)
Quitting WebMerchant ? (1997)