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

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
mulandc@yahoo.fr
Posts: 13
Joined: Wed Feb 25, 2015 2:15 pm

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

Post by mulandc@yahoo.fr » Wed Feb 25, 2015 2:22 pm

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

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Wed Feb 25, 2015 2:40 pm

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!

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9648
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

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

Post by dunbarx » Wed Feb 25, 2015 10:26 pm

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

mulandc@yahoo.fr
Posts: 13
Joined: Wed Feb 25, 2015 2:15 pm

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

Post by mulandc@yahoo.fr » Tue Mar 03, 2015 7:51 am

Thanks for the answers. it is quiet well understanding :D :D

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”