Page 1 of 1

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

Posted: Sat Jun 13, 2015 3:00 pm
by ittarter
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.

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

Posted: Sat Jun 13, 2015 3:19 pm
by sefrojones
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

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

Posted: Sat Jun 13, 2015 4:42 pm
by ittarter
Yay, thanks. I think I'm going to watch some video tutorials...