On 11/5/03 5:57 PM, [EMAIL PROTECTED] wrote:

[Firstly, thanks Sarah<[EMAIL PROTECTED]> for your answers about plugins and modes etc. ("Re: Pointer tool not working"). My Launcher stack was set to open at startup as a palette, not a modeless window. It's starting to make sense.]

Anyway, I've got another question now:

I have written a stack that converts a user-entered time to seconds (to test that it's a valid time) then back to short time (to standardise it). It works fine in HyperCard, but in Revolution, it adds an hour!

I tried this is the multi-line message box:

ask "Enter a time:" with "8:17 am"
convert it to secs
convert it to short time
answer it

... and the result was "9:17 am"

Then I tried this:

ask "Enter a time:" with "8:17 am"
convert it to dateItems
convert it to short time
answer it

... and the result was "10:17 am"!

Finally I tried this:

ask "Enter a time:" with "8:17 am"
convert it to dateItems
answer it

... and the result was "2003,11,6,9,17,0,5" (i.e. 9:17 am )!!

What's going on here?

Do your scripts have anything in them besides what you posted? I just tried all three examples and correctly got "8:17 AM" each time.


--
Jacqueline Landman Gay         |     [EMAIL PROTECTED]
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to