How to Display Time
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
How to Display Time
Hello everyone my question is regarding in TIME i want to see the seconds in TIME is running. i display the time (static) only. thanks in advance
Thank you & God Bless Everyone
Regards,
lemodizon

Regards,
lemodizon
Re: How to Display Time
Hi lemodizon,
put this into your button
this will start and stop the display of time depending on the script local variable sRunning.
When clicking the button it will start the display, clicking again will stop it.
Kind regards
Bernd
put this into your button
Code: Select all
local sRunning = false
on mouseUp
put the long time into field "timeField"
put the system date into field "dateField"
if sRunning <> true then
put true into sRunning
send "doTime" to me in 1 second
else
put false into sRunning
end if
end mouseUp
on doTime
if sRunning then
put the long time into field "timeField"
send "doTime" to me in 1 second
end if
end doTime
When clicking the button it will start the display, clicking again will stop it.
Kind regards
Bernd
Re: How to Display Time
hello Bernd,
thanks for sharing and explaining the code i tried and it works
the exercise is from the visual basic6.0 and i just tried it in livecode and it works. thanks for the support everyone. have nice day
thanks for sharing and explaining the code i tried and it works


Thank you & God Bless Everyone
Regards,
lemodizon

Regards,
lemodizon