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=732557DATE_OUT=7325603 daysnumdays=0On 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:
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=732557DATE_OUT=7325603 daysnumdays=0On 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:
Date question (2003)
ShowIf inside formulas (1997)
line endings for Mac OS X files? (2003)
WC2f3 (1997)
Problem with Formulas.db (1998)
FEW QUESTIONS (1997)
[WebDNA] Installing WebDNA on Windows 7 (2009)
Beta (?) version of WebCatalog 2.1 (1998)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
Up and running ... at last !! (1997)
[Sum] function? (1997)
grep twice or a better way.... (2007)
Setting up shop (1997)
Plugin or CGI or both (1997)
Multiple Selections in Pull-Down Menu (2000)
More Cookies (2002)
Umm...about those log files? (Off Topic) (1997)
setting cookies then redirecting? (1998)
More Applescript (1997)
[include] affect on filepaths for links? (1997)