how to add from an Include file command
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62897
interpreted = N
texte = Hello,I need to total a list of numbers read from a database.I think that I'm having a problem using [writefile] and [include] tags1) After a [search] and [founditems] I get the value in DURATION which is in %H:%M format, so I convert it to seconds.... [text]var1=[math]{[DURATION]}[/math][/text]2) then I add the new value, var1 to the amount read from the file named: atextfile.inc (which is 0 the first time through)[text][math]var2=[include file=atextfile.inc]+[var1][/math][/text]3) then I write var2 back to the same text file: atextfile.inc[writeFile atextfile.inc][var2][/writeFile]I end with [/founditems], so that it will go back and find the next value in DURATIONeach time it executes step 2, the number from the include file command is reset to zero.I can't seem to get it to write a value, then read it back to add it each time.Where is my error?Thanks all,sfb-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Hello,I need to total a list of numbers read from a database.I think that I'm having a problem using [writefile] and [include] tags1) After a [search] and [founditems] I get the value in DURATION which is in %H:%M format, so I convert it to seconds.... [text]var1=[math]{[DURATION]}[/math][/text]2) then I add the new value, var1 to the amount read from the file named: atextfile.inc (which is 0 the first time through)[text][math]var2=[include file=atextfile.inc]+[var1][/math][/text]3) then I write var2 back to the same text file: atextfile.inc[writeFile atextfile.inc][var2][/writeFile]I end with [/founditems], so that it will go back and find the next value in DURATIONeach time it executes step 2, the number from the include file command is reset to zero.I can't seem to get it to write a value, then read it back to add it each time.Where is my error?Thanks all,sfb-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
sbraun
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:
[OT] HTML EMAIL program wanted (1999)
deerfield/wingate server (2004)
File Upload (2000)
Triggers (2003)
Re:Emailer and encryption (1997)
Showif, Hideif reverse logic ? (1997)
UPDATE - Refusing connections issue ... (1999)
How does WebCatalog search the database? (1997)
Can't load tmpl files (1997)
Size images (2002)
Credit Card Checking?? (1998)
[WebDNA] On click show hidden include (2009)
WebCatalog2 Feature Feedback (1996)
Odd [math] behaviour (2003)
Paths, relative paths, webstar server setup andsecurity WebDNA-Talk@smithmicro.com (1997)
WC1.6 to WC2 date formatting (1997)
Credit Card Number checking (1997)
Error Type 3 (1999)
WebCatalog [FoundItems] Problem - AGAIN - (1997)
HomePage Caution (1997)