Time field (please help)

Terry Vogelaar terry at discovery.nl
Sun Mar 3 10:47:01 EST 2002


>> How do you get the field to display live time?
> 
> Try using <on idle >in the script of the field.

The use of 'on idle' should be avoided. Instead, write a handler in the
script of the field that is called by an openCard handler:

send updateTime to field "Now"

and let the handler call itself in 1 second:

on updateTime
  put the long time into me
  send updateTime to me in 1 second
end updateTime





More information about the use-livecode mailing list