Using Lists in the Library

Elanor Buchanan July 5, 2016 73

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, 2016 74

Passing 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, 2016 75

LiveCode 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, 2016 76

In 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, 2016 77
Edinburgh / 02-04 August 2016 For the first time ever, you can book a day with the developer of your choice. We have a very limited number of developer days available for sale, first come first served. Developer Day Availability - Monday 1st August & Friday 5th August only [livecode_conference_display_basket] Would your project benefit from

Compiling and testing a library in LiveCode

Elanor Buchanan June 8, 2016 78

Testing 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, 2016 79

LiveCode 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

Speakers OLD

Steven Crighton June 6, 2016 80
Edinburgh / 02-04 August 2016 For the first time ever, you can book a day with the developer of your choice. We have a very limited number of developer days available for sale, first come first served. Developer Day Availability - Monday 1st August & Friday 5th August only Speakers Kevin Miller CEO, LiveCode Bio: