Page 1 of 1

creation of bookstores in LUA

Unread postPosted: 25 Oct 2017, 16:08
by el_mix17
Good Morning
I would like to know if it is possible in LUA to create libraries for later use in other applications.
The purpose of this is to not have the program very loaded and thus make it more orderly when programming.
For example create a function that allows me to perform a mathematical operation in LUA, and to be used do not have to write all your code, just call it from a library. :) :)

Re: creation of bookstores in LUA

Unread postPosted: 25 Oct 2017, 16:30
by Adriweb
It's more or less feasible (although at some point there were talks by TI of official libraries support, but it's still not available yet).
For instance, you can store code in MyLib documents and load it back later.
Example on some formulapro external database loading: https://github.com/adriweb/EEPro-for-Ns ... tabase.lua

Re: creation of bookstores in LUA

Unread postPosted: 25 Oct 2017, 17:12
by el_mix17
when it is loaded in the library.
How do I upload it to my program?
What command is used to load my function?