What's the difference between Custom Command, Custom Function, and Custom On?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
What's the difference between Custom Command, Custom Function, and Custom On?
Hello LC Experts,
Newbie here from the Philippines. Is any body here could explain to me, what is the difference between Custom Command, Custom Function, and Custom On?
I'm confused about the three(3) Custom Handlers on how/when to use it?
Hoping to read your answers LC Experts.
Newbie here from the Philippines. Is any body here could explain to me, what is the difference between Custom Command, Custom Function, and Custom On?
I'm confused about the three(3) Custom Handlers on how/when to use it?
Hoping to read your answers LC Experts.
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: What's the difference between Custom Command, Custom Function, and Custom On?
The difference between a Custom Function and a Custom Command is just about
the same as the difference between a Function and a Command.
A Custom Command is explained here: http://lessons.livecode.com/m/4603/l/56 ... g-a-button
Custom Functions here: http://livecode.byu.edu/functions/functions.php
If you look in the Help section of the LIveCode interface both functions and commands are clearly explained.
Normally when a command is used it is called by its name:
put XX into ZZZ where put is the command
A function is normally called using a command
put cheeseBits(firstVALUE, secondVALUE) into ZZZ
where put is the command, and cheeseBits is the custom function that you have defined elsewhere.
the same as the difference between a Function and a Command.
A Custom Command is explained here: http://lessons.livecode.com/m/4603/l/56 ... g-a-button
Custom Functions here: http://livecode.byu.edu/functions/functions.php
If you look in the Help section of the LIveCode interface both functions and commands are clearly explained.
Normally when a command is used it is called by its name:
put XX into ZZZ where put is the command
A function is normally called using a command
put cheeseBits(firstVALUE, secondVALUE) into ZZZ
where put is the command, and cheeseBits is the custom function that you have defined elsewhere.
Last edited by richmond62 on Wed Jan 01, 2020 4:55 pm, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: What's the difference between Custom Command, Custom Function, and Custom On?
I'm afraid I have never heard of a Custom On.
-
-
Re: What's the difference between Custom Command, Custom Function, and Custom On?
Substitute "Handler" for "On"
Happy New Year all
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: What's the difference between Custom Command, Custom Function, and Custom On?
Thanks Sir richmond62.
Re: What's the difference between Custom Command, Custom Function, and Custom On?
A couple of years ago, LC announced that they might change something in the language and users should use
-> command MyHandler
instead of
-> on MyHandler
so the engine could differ between build-in commands like "ON mouseup" from user created (= custom) handlers.
The above mentioned change did not happen however...
A custom function is everything that WE create in contrary to the build-in functions like SUM() etc.
-> command MyHandler
instead of
-> on MyHandler
so the engine could differ between build-in commands like "ON mouseup" from user created (= custom) handlers.
The above mentioned change did not happen however...
A custom function is everything that WE create in contrary to the build-in functions like SUM() etc.
Re: What's the difference between Custom Command, Custom Function, and Custom On?
You may also find this essay by Jacque to be helpful in further understanding custom handlers, functions, and such.
I had forgotten to include it in my previous reply.
*Edit - Just came across this also very well explained post right here in the forum
I had forgotten to include it in my previous reply.
*Edit - Just came across this also very well explained post right here in the forum
Re: What's the difference between Custom Command, Custom Function, and Custom On?
Oh, Dr. Marielle Lange, a very dark chapter in the LC history!bogs wrote: ↑Wed Jan 01, 2020 3:41 pm*Edit - Just came across this also very well explained post right here in the forum
Re: What's the difference between Custom Command, Custom Function, and Custom On?
Really? I miss ALL the fun!
Re: What's the difference between Custom Command, Custom Function, and Custom On?
Oui, mon ami!
Basically (what I learned from the LC mailing list at that time, this was of course not completely discussed in public)
she wanted to (or even did?) sue LC for not keeping the promises the marketing departement made.
Basically (what I learned from the LC mailing list at that time, this was of course not completely discussed in public)
she wanted to (or even did?) sue LC for not keeping the promises the marketing departement made.
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: What's the difference between Custom Command, Custom Function, and Custom On?
This person . . ,
Hired me to do something about converting LiveCode stacks into HTML (2001-2) and did not like
what I did. Then apologised and said she was seeing a specialist about "her emotional problems."
I still have the version of Revolution DreamCard that she bought me for my work.
Obviously something rather complicated and sad going on there.
I do hope she is all a bit happier now.
Hired me to do something about converting LiveCode stacks into HTML (2001-2) and did not like
what I did. Then apologised and said she was seeing a specialist about "her emotional problems."
I still have the version of Revolution DreamCard that she bought me for my work.
Obviously something rather complicated and sad going on there.
I do hope she is all a bit happier now.
Last edited by richmond62 on Wed Jan 01, 2020 7:45 pm, edited 1 time in total.
Re: What's the difference between Custom Command, Custom Function, and Custom On?
Well, I still think the post I linked is a decent explanation, regardless of what followed
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: What's the difference between Custom Command, Custom Function, and Custom On?
Aye, well, if inventing nonce-vocables is your idea of "a decent explanation."Well, I still think the post I linked is a decent explanation
----
Let's take a glisk:
"When you give a command, you don't expect the person to discuss your instructions, only to obtemperate (promptly obey)." [ My high lighting. ]
What a stramash we'd aa hae were we to toss up war ain, seemingly, random vocables when it suited us.
"I don't know what you mean by 'glory,' " Alice said.
Humpty Dumpty smiled contemptuously. "Of course you don't—till I tell you. I meant 'there's a nice knock-down argument for you!' "
"But 'glory' doesn't mean 'a nice knock-down argument'," Alice objected.
"When I use a word," Humpty Dumpty said, in rather a scornful tone, "it means just what I choose it to mean—neither more nor less."
"The question is," said Alice, "whether you can make words mean so many different things."
Alice Through the Looking Glass; Lewis Carroll. [ My high lighting. ]
-
- VIP Livecode Opensource Backer
- Posts: 7238
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: What's the difference between Custom Command, Custom Function, and Custom On?
She Who Must Not Be Named scans (or used to scan) all public LC conversations looking for references to herself. I made that mistake once after she was unceremoniously dumped from participation and received a threatening email with legal implications, which of course she could not follow through on. I have since stopped doing that, she is best left alone.
If she is still bothering with us after all these years you can probably expect retaliation to this thread.
If she is still bothering with us after all these years you can probably expect retaliation to this thread.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com