Using lists in the library It will often be useful to return more that a single piece of data from a library handler. Next we will update the sayHello handler to take a string containing a comma separated list of names, and return a LiveCode Builder list with an element containing a Hello message for
Passing Parameters to the Library
Elanor Buchanan July 5, 2016Passing parameters to the library In many cases you will want to use parameters in your library handlers. Handler definitions have the form: <HandlerType> handler <HandlerName>(<ParameterList>) [ returns <ReturnType> end handlerName The parameter list is a comma separated list of parameters, each of which has the form ( ‘in’ | ‘out’ | ‘inout’ ) <ParameterName>
Explicit Types
Elanor Buchanan July 5, 2016LiveCode Builder Typing LiveCode Builder is a strongly, dynamically typed language, although typing is completely optional in most places. If a type is not specified it is taken to be the most general type optional any (meaning any value, including nothing). What is a strongly typed language? If a language is defined as typed it means
Introduction
Elanor Buchanan July 5, 2016In this lesson we will extend the minimal LiveCode Builder library we created in Lesson 1. We will Learn about LiveCode Builder types. Work with LiveCode Builder lists. Learn about type conversion between LCB and LiveCode script. Pass a parameter to the sayHello handler. Document the library using documentation comments. Browse the library documentation in
Edinburgh 2016 Developer Day – Attendees Only
Steven Crighton June 17, 2016Compiling and testing a library in LiveCode
Elanor Buchanan June 8, 2016Testing the library Now we have a complete library we want to compile and test it. To do this we use the LiveCode Extension Builder. Open LiveCode Open the Extension Builder from the Tools Menu The Extension Builder 1. Open button – allows you to select and load the extension you wish to build. 2.
Introduction
Elanor Buchanan June 7, 2016LiveCode Builder Extensions In this lesson we will create a minimal LiveCode Builder library which extends the set of commands and functions available in LiveCode. We will Install and configure an appropriate text editor for developing in LiveCode Builder. Create a Hello World library which extends LiveCode with a single function, which returns the string
Recent Comments