Page 1 of 1

I would like to know what is the pOperator? is it a functi

Posted: Wed Feb 25, 2015 2:22 pm
by mulandc@yahoo.fr
on operatorPressed pOperator
set the showBorder of button "/" to false
set the showBorder of button "x" to false
set the showBorder of button "-" to false
set the showBorder of button "+" to false
--Set the border color to Black
set the borderColor of button pOperator to black
set the showBorder of button pOperator to true
end operatorPressed

Re: I would like to know what is the pOperator? is it a fu

Posted: Wed Feb 25, 2015 2:40 pm
by Klaus
Bonjour Mulandc@yahoo.fr,

1. welcome to the forum! :D

2. "pOperator" is a parameter (means PLACEHOLDER) for the actual NAME of a button.
When calling this handler the name of a real button obhject is supplied in "pOperator"
...
put "a button on your card" into tButtonName
## Now call that handler and pass any valid button name as the parameter:
operatorPressed tButtonName
...

3. Please check these great learning resources to get more of the basics of Livecode:
http://www.hyperactivesw.com/revscriptc ... ences.html


Best

Klaus

P.S.
Since this is definitively NOT an announcement (Hint, hint 8) ) I will move this thread to the correct forum!

Re: I would like to know what is the pOperator? is it a fu

Posted: Wed Feb 25, 2015 10:26 pm
by dunbarx
Make a button. In its script:

Code: Select all

on mouseUp
  seeTheParam random(99)
end mouseUp

on seeTheparam randomNumber
   answer randomNumber
end seeTheparam
Now step into (not "over") each line in the handler. Do you know how to do this?

Craig Newman

Re: I would like to know what is the pOperator? is it a fu

Posted: Tue Mar 03, 2015 7:51 am
by mulandc@yahoo.fr
Thanks for the answers. it is quiet well understanding :D :D