Problem in Time field

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
shalu
Posts: 72
Joined: Fri Mar 20, 2015 1:05 pm

Problem in Time field

Post by shalu » Fri Jul 03, 2015 7:50 am

Hi,

I am beginner in Livecode. I am crete a field for showing the current time, my problem is once I close stack after when I open the stack it doesn't show the current time also it not running, I am using the following code

Code: Select all

on showTime
  put the long time into fld "Time"
  send "showTime" to me in 100 milliseconds
end showTime

 
--
Thanks
Shalu S

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Problem in Time field

Post by jmburnod » Fri Jul 03, 2015 8:28 am

Hi Shalu,

Do you have an openstack handler

Code: Select all

on openstack
showTime
end openstack
Best regards
Jean-Marc
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Problem in Time field

Post by dunbarx » Fri Jul 03, 2015 10:03 pm

Perhaps Jean-Marc's post told you everything you needed to know.

You must have started that handler in the first place in some fashion, no? Perhaps in a button script, a mouseUp handler sets it going? Whatever.

In the same way, a message is sent when you open a stack, and you can trap it to do whatever you need to, like start that handler again. This is a great tool to get to know, as well as its counterpart, "closeStack"

Craig Newman

Post Reply