Binary clock exercise - stays static

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
BranFlayk
Posts: 10
Joined: Sun Dec 01, 2013 4:10 pm

Binary clock exercise - stays static

Post by BranFlayk » Wed Feb 05, 2014 4:02 pm

Hi

This is my first attempt at a proper Livecode program, a binary clock.
Have compiled it, but it just stays static on the time that I ran it in the IDE. To get it to run there, I had to say which function I wanted to run, it didn't just start when changing from pointer tool.

Pretty sure it's something I've done, but not sure where to start looking.

I'm hoping to improve the code at a later point, but just wanted to see if it worked.
Attachments
bclock.zip
(2 KiB) Downloaded 185 times

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Binary clock exercise - stays static

Post by Simon » Wed Feb 05, 2014 7:29 pm

Hi BranFlayk,
I was going to make a joke about dyslexia but it occurs to me that would be wrong.
"cardpreopen" should be preOpenCard
and
"cardopen" should be openCard
Easy to mess up on.

Now your stack will work. :)

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

BranFlayk
Posts: 10
Joined: Sun Dec 01, 2013 4:10 pm

Re: Binary clock exercise - stays static

Post by BranFlayk » Wed Feb 05, 2014 9:21 pm

Thank you! Have got it working now - feeling like a right fool :oops:
Oh well, it was a learning execise...on to version 2

Post Reply