Can't find handler -- what does this mean? [solved]

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
ittarter
Posts: 151
Joined: Sat Jun 13, 2015 2:13 pm

Can't find handler -- what does this mean? [solved]

Post by ittarter » Sat Jun 13, 2015 3:00 pm

Hi,

Just bought Livecode and it's embarrassingly difficult.

I can get the answer function to display a text, but I can't set the text of my label lbl_total. The current error is "can't find handler" but I get other errors too, no idea what they mean. Is there a place where livecode error messages are explained?

Basically I want my app to add up a few boxes and display the result in a label... but I can't even get it to display "3". And I have no idea why. (I thought I followed the "Hello World!" model to the letter. Not sure why my app of differently named cards and buttons wouldn't work the same way.)

set text of lbl_total to "3" ## also doesn't work :(

I've also tried to be fancy with (under the button script)
on mouseup
calculate
end mouseup
(and then on the card script)
on calculate
put "3" into lbl_total
end calculate

Included is a hopefully helpful screenshot. Please end my suffering.
Attachments
livecode handler.png
Last edited by ittarter on Sat Jun 13, 2015 4:27 pm, edited 1 time in total.

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: Can't find handler -- what does this mean?

Post by sefrojones » Sat Jun 13, 2015 3:19 pm

Is "lbl_total" a field? If so, try this:

Code: Select all

put 3 into field "lbl_total"
Label fields are also fields. Hope this helps.

--Sefro

ittarter
Posts: 151
Joined: Sat Jun 13, 2015 2:13 pm

Re: Can't find handler -- what does this mean? [solved]

Post by ittarter » Sat Jun 13, 2015 4:42 pm

Yay, thanks. I think I'm going to watch some video tutorials...

Post Reply