Built-in functions

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
nextyoyoma
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 37
Joined: Sat Oct 06, 2012 6:29 am

Built-in functions

Post by nextyoyoma »

Is it possible to view the code for the build in functions, such as toUpper and intersect? I would love to be able to show my students how these functions work.
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Built-in functions

Post by Klaus »

Yes, it is:
1. Open the dictionary -> menu: Help
2. in the new window: Click "Function" on the left side and on the top right side you will see all functions listed.
3. Click one line in the list to see info about it in the field at the bottom right.
8)
nextyoyoma
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 37
Joined: Sat Oct 06, 2012 6:29 am

Re: Built-in functions

Post by nextyoyoma »

@Klaus,

Thanks, but I was looking for the actual CODE for these functions.

For example, I can open up the LiveCode app bundle and go to Contents>Resources>Tools>Toolsets and get a look at the actual stack for the answer dialog. Is there a stack somewhere that defines functions like "toUpper" or "intersect"?
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Built-in functions

Post by FourthWorld »

The LiveCode engine is written in C++. The source is here:
https://github.com/runrev/livecode
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Post Reply