Time Field (Please Help)
David Vaughan
drvaughan55 at mac.com
Tue Mar 5 17:07:01 EST 2002
On Wednesday, March 6, 2002, at 04:24 , Rob Cozens wrote:
>> snip
> I made a copy of my HC Home stack and placed the following handler in
> the
> card script of card "User Preferences":
>
> on testit
> if there is a card field "User Name" then put "Found It" else beep
> end testit
>
> From the message window I type 'send "testit" to card "User
> Preferences"'.
>
> If I'm on card "User Preferences", "Found It" appears in the message
> window; if I'm on a different card, I get the beep.
>
> IF it works this way in Transcript, I submit it is the best solution
> because no explicit action is necessary to stop the loop when leaving
> the
> card.
Rob
You can not depend on it fail silently because Transcript is less
bashful than HC. If the field does not exist then (in the development
environment) you get an error dialog with "Chunk can't find object to
store into". Using the if construct avoids that problem.
Of course, you could always set idleRate to 1 second and use the idle
message rather than send in. Who needs the seconds ticking by anyway?
Set it to 30 seconds and display hours and minutes.
regards
David
>
> Rob Cozens
> CCW, Serendipity Software Company
>
> "And I, which was two fooles, do so grow three;
> Who are a little wise, the best fooles bee."
>
> from "The Triple Foole" by John Donne (1572-1631)
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list