Hello, friends.
Here I document an example where I migrate a form (that I develope aprox 3 or 4 years ago) to LuaRT.
Abstract:
I wrote a form, Tabla_de_Admoras.lua, that used "First/Last/Next/Prev/New/Edit/Delete" to edit data form a database table.
I decided to use IUP for the user interface.
But I found that LuaSQLite only had binaries for Lua v5.1 (as many-many other utilities I needed, yet today).
I had to use Lua v5.1 and IUP buit for it.
I put a question in a forum for someone provide instructions for building LuaSQLite for Lua v5.3.3 (current by that moment).
The colleague Pavel Drotar answered it (I can share'em if someone ask for them), but they depend of LuaRocks and it is not enough easy for me.
Today I can use the LuaSQLite binary compiled for Lua v5.3.3... But I am not interested in stuck my apps in v5.3.3 (nor in v5.1).
I modified Tabla_de_Admoras.lua for not to use LuaSQLite, and I got Tabla_de_Admoras(wo_sqlite).lua.... it uses just IUP, because the IUP binaries are available in its own portal for many versions, and any new.
I provide several .BATs/.CMDs to run Tabla_de_Admoras.lua, or the modified one.
As you can see, I (and you too) can run Tabla_de_Admoras(wo_sqlite).lua in Lua v5.4.0, LuaRT v0.9.3.
My questions in an LuaRT scenario/environment:
Can your UI module in LuaRT help me to raise a form like this?
If not, no problem, I just wanna know, and can wait the UI documentation.
With respect to SQLite:
Would you provide something in the LuaRT "core" or a DLL built for LuaRT?
For additional DLLs:
Would you provide instruction for us to compile/build them? Or would you help me to write the documentation and proceed?
Description of the files attached:
|----------------------------------|
| Tabla_de_Admoras |
|----------------------------------|
| Tabla_de_Admoras.lua | The form that wrote
| Tabla_de_Admoras(wo_sqlite).lua | The form but modified for run in LuaRT before I get LuaSQLite-DLL binary for Lua v5.4 (and/or LuaRT)
|----------------------------------|
| Admoras.db | The database
|----------------------------------|
| lua515\ | The dir with Lua v5.1.5, and IUP binaries for it
| lua533\ | The dir with Lua v5.3.3, and IUP binaries for it
| lua533\ | The dir with Lua v5.3.3, and IUP binaries for it
| lua540\ | The dir with Lua v5.4.0, and IUP binaries for it (compatible with LuaRT v0.9.3)
| luaRT\ | The dir with LuaRT v0.9.3, and IUP binaries for Lua v5.4.0 (compatible with LuaRT v0.9.3)
|----------------------------------|
| lua515.cmd | The batch file for running Tabla_de_Admoras.lua with Lua v5.1.5
| lua533-wo.cmd | The batch file for running Tabla_de_Admoras(wo_sqlite).lua with Lua v5.3.3
| lua533.cmd | The batch file for running Tabla_de_Admoras.lua with Lua v5.3.3
| lua540.bat | The batch file for running Tabla_de_Admoras(wo_sqlite).lua with Lua v5.4.0
| luart.bat | The batch file for running Tabla_de_Admoras(wo_sqlite).lua with LuaRT v0.9.3
|----------------------------------|
| DATA2.ICO | Additional files, used by the form
| default_icon.bmp |
|----------------------------------|
| lsqlite3-lua51.dll | LuaSQLite binary that only runs in Lua v.5.1
| lsqlite3-lua53.dll | LuaSQLite binary that only runs in Lua v.5.3
|----------------------------------|
-------------------------------------------------
Please How can I attatch a file (20 Mb)?
About a form to be run in Lua 51, 53, 54 y LuaRT
**Tabla_de_Admoras.zip**