Error can't find handler

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
polecat
Posts: 8
Joined: Tue Jun 28, 2016 9:52 pm

Error can't find handler

Post by polecat » Tue Jun 28, 2016 10:05 pm

I try to create a simple calculator following a livecode tutorial. When I create a card script the system give me a runtime error: ( Handler: can't find handler) near "operatorPressed", char 1
Please help me a can't understand where is the problem
Schermata 2016-06-28 alle 22.57.51.png
card scripts
Schermata 2016-06-28 alle 22.58.38.png
divide scripts
Schermata 2016-06-28 alle 23.00.02.png
Error

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Error can't find handler

Post by mwieder » Tue Jun 28, 2016 11:26 pm

In the card script your "set the showBorder to" should be "set the showBorder of"

polecat
Posts: 8
Joined: Tue Jun 28, 2016 9:52 pm

Re: Error can't find handler

Post by polecat » Wed Jun 29, 2016 8:22 am

I received the same error
Schermata 2016-06-29 alle 09.21.53.png

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Error can't find handler

Post by Klaus » Wed Jun 29, 2016 1:26 pm

Just to be sure, the button "divide" IS on the card "Calcolatrice"?

polecat
Posts: 8
Joined: Tue Jun 28, 2016 9:52 pm

Re: Error can't find handler

Post by polecat » Wed Jun 29, 2016 1:31 pm

I've only one card! however how can I verify if my button divide is on the same card "Calcolatrice"?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Error can't find handler

Post by Klaus » Wed Jun 29, 2016 1:36 pm

polecat wrote:I've only one card! however how can I verify if my button divide is on the same card "Calcolatrice"?
Well, in that case logics answers your question! :D

If you like you can send me that stack privately and I will take a look -> klaus AT major-k.de

Newbie4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 332
Joined: Sun Apr 15, 2012 1:17 am
Contact:

Re: Error can't find handler

Post by Newbie4 » Wed Jun 29, 2016 1:48 pm

Sometimes there is an unprintable character at the beginning of a line. (especially if you cut and pasted the line). Try deleting and retyping that line.
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Error can't find handler

Post by Klaus » Wed Jun 29, 2016 1:54 pm

I received and opened the stack and do NOT see this error when clicking that button!?
Maybe restarting LC helps?

polecat
Posts: 8
Joined: Tue Jun 28, 2016 9:52 pm

Re: Error can't find handler

Post by polecat » Wed Jun 29, 2016 2:06 pm

Is so strange but i install the new version of livecode and now works.
Tnks a lot

Post Reply