Installing the library into the LiveCode IDE
The Extension Builder is also used to install libraries. Installed libraries are loaded each time LiveCode is started up. Extensions are installed into your My LiveCode folder.
- Open the Extension Builder from the Tools menu.
- Click the Open button and load the “HelloWorldLibrary.lcb” file.
- Click the Install button to install the library.
You will be asked to select an icon and a high resolution icon, click Cancel on these dialogs as no icon is needed for a library.
The installed library
Go to your My LiveCode folder.
In the Extensions folder you will see a folder with the same name as your library identifier.
This folder contains the files that are make up the packaged extension.
Any extensions installed to My LiveCode are automatically loaded when LiveCode is started up.
Testing the installed library
To test your library is correctly installed execute
put the loadedExtensions
in the Message Box. Your library will appear in the list of extensions.
To test the library handler execute
put sayHello()
in the Message Box.
The text returned by the library is displayed in the Message Box.