1 Jul 2007 06:49
Re: Precluding Negative Values [was: Countdown Timer: Days, Hours...]
it seem that ABS is not found ==> verify that yiu use .ABS if it is a script !
an other solution is to use 2 variables !
*info expr ( assign("totalsec", date.subseconds(20060101, date.now))/(24*3600) ++ ":" ++
assign("totalsecabs", ifelse(totalsec<0,totalsec *
-1,totalsec))%(24*3600)/3600++":"++totalsecabs%3600/60++":"++totalsecabs%60)
Hope this help !
----- Original Message ----
From: thricipio <thricipio@...>
To: power-pro@...
Sent: Saturday, June 30, 2007 8:38:13 PM
Subject: [power-pro] Precluding Negative Values [was: Countdown Timer: Days, Hours...]
Doing a little further testing, I realized that as soon as
<targetdate> rolls into the past, the displayed result will have a [-]
sign prepended to each component. To solve this, I've incorporated
.ABS within .ASSIGN. And this works just fine.
Then it occurred to me that it would be better to test the value
of . . .
date.subseconds( "<targetdate> ",date.now)
. . . and IF it's negative, prepend the resulting expression with a
(Continue reading)
RSS Feed