LCB Library Definition
The first thing we need to do is declare the type of extension we are writing.
We are writing a library and so we need to declare the extension as such.
The library declaration is followed by an identifier. An extension identifier should be in the form
community.livecode.<user name>.<library name>
In my case my username is “elanorb” and I have chosen to use “helloworld” as the name part of the identifier.
library community.livecode.elanorb.helloworld
end library
LCB module naming
The module name uses reverse DNS notation. For example, a module created by the Example Organisation would use module names beginning with org.example.
You must only use module names corresponding to domain names that you control or are allowed to use.
If you don’t have a domain name of your own, you may use module names beginning with community.livecode.. For example, if your username is “sophie”, then you can create a module named community.livecode.sophie.mymodule.
Always write module names in lower case.
For more detailed information check the LiveCode Builder Style Guide. The guide is available under the ‘Guide’ tab in the Dictionary or as a PDF under the ‘Resources’ tab for this lesson.