I can't set the variable

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62990
interpreted = N
texte = Thanks Gary, but no luck. I've copied and pasted your code into it. Still no luck. What's wrong? Here's the entire script: [search db=hours.db&grSKUdata=1&asSKUsort=1&deTIME_INsort=2&max=1] [founditems] DATE_IN=[DATE_IN]
DATE_OUT=[DATE_OUT]
[math][DATE_OUT]-[DATE_IN][/math] days
[text]numdays=[math][DATE_OUT]-[DATE_IN][/math][/text] numdays=[numdays] [/founditems][/search]
Here's the output: DATE_IN=732557 DATE_OUT=732560 3 days numdays=0 On Sep 11, 2005, at 12:04 AM, Gary Krockover wrote: > Yeah, similarly, this worked for me: > > [text show=f]DATE_IN=732557[/text] > [text show=f]DATE_OUT=732560[/text] > > DATE_IN=[DATE_IN]
> DATE_OUT=[DATE_OUT]
> [math][DATE_OUT]-[DATE_IN][/math] days
> [text]numdays=[math][DATE_OUT]-[DATE_IN][/math][/text] > numdays=[numdays] > > output: > > DATE_IN=732557 > DATE_OUT=732560 > 3 days > numdays=3 > > > At 10:54 PM 9/10/2005, you wrote: >> Did you define [DATE_IN] and [DATE_OUT] higher up on the page? >> >> This worked for me: >> >> [math]DATE_IN=732557[/math]
>> [math]DATE_OUT=732560[/math]
>> >> [math][DATE_OUT]-[DATE_IN][/math] days
>> [text]numdays=[math][DATE_OUT]-[DATE_IN][/math][/text] >> numdays=[numdays] >> >> output: >> >> 732557 >> 732560 >> 3 days >> numdays=3 > > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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:

    
  1. Re: I can't set the variable ( Brian Fries 2005)
  2. I can't set the variable ( sbraun 2005)
Thanks Gary, but no luck. I've copied and pasted your code into it. Still no luck. What's wrong? Here's the entire script: [search db=hours.db&grSKUdata=1&asSKUsort=1&deTIME_INsort=2&max=1] [founditems] DATE_IN=[DATE_IN]
DATE_OUT=[DATE_OUT]
[math][DATE_OUT]-[DATE_IN][/math] days
[text]numdays=[math][DATE_OUT]-[DATE_IN][/math][/text] numdays=[numdays] [/founditems][/search]
Here's the output: DATE_IN=732557 DATE_OUT=732560 3 days numdays=0 On Sep 11, 2005, at 12:04 AM, Gary Krockover wrote: > Yeah, similarly, this worked for me: > > [text show=f]DATE_IN=732557[/text] > [text show=f]DATE_OUT=732560[/text] > > DATE_IN=[DATE_IN]
> DATE_OUT=[DATE_OUT]
> [math][DATE_OUT]-[DATE_IN][/math] days
> [text]numdays=[math][DATE_OUT]-[DATE_IN][/math][/text] > numdays=[numdays] > > output: > > DATE_IN=732557 > DATE_OUT=732560 > 3 days > numdays=3 > > > At 10:54 PM 9/10/2005, you wrote: >> Did you define [DATE_IN] and [DATE_OUT] higher up on the page? >> >> This worked for me: >> >> [math]DATE_IN=732557[/math]
>> [math]DATE_OUT=732560[/math]
>> >> [math][DATE_OUT]-[DATE_IN][/math] days
>> [text]numdays=[math][DATE_OUT]-[DATE_IN][/math][/text] >> numdays=[numdays] >> >> output: >> >> 732557 >> 732560 >> 3 days >> numdays=3 > > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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:

[WebDNA] Windows WebDNA Editor (2009) WebCat2b15MacPlugin - [protect] (1997) PSC recommends what date format yr 2000??? (1997) Delayed Redirect (2000) [WebDNA] Talk List (2018) What about this gremlin issue? (2000) Problem displaying search result (1997) searching problem (1998) docs for WebCatalog2 (1997) Searching multiple fields from one form field (1997) Calculating multiple shipping... (1997) Searchable WebCat (etc.) Docs ? (1997) Problems getting parameters passed into email. (1997) Help formatting search results w/ table (1997) Interesting speed comparison .. (2003) 4.5.1 upgrade? (2003) [WebDNA] .htm files (2008) TCPConnect, Form Post, Template Variable (2003) Using the sendmail command on CGate Pro (Unix) (2000) autosensing lanague selection (1997)