While trying to adapt some gadgets, we have hit a wall
We have managed to find from the SDK documentation how to create a sheet, but we cannot find how to change the name of the sheets.
This is what we have working
Code: Select all
local job = VectricJob()
local sheet_manager = job.SheetManager
-- get the id of an existing sheet
local existing_sheet_id = sheet_manager:GetSheetIds()()
-- create a new sheet with the same properties as the existing sheet
sheet_manager:CreateSheets(number_of_files, existing_sheet_id)
MessageBox("existing_sheet_id " .. sheet_manager:GetSheetName(existing_sheet_id))
----
Another issue we have been facing is there is no documented information on how to load a external library, namely we would like to use io.lua and folllowing the LUA standard programming it always returns as a nill value
According to lua documentation here: https://www.lua.org/pil/8.1.html the code below should work if the io.lua file and correct dependencies was in the same folder as the gadget, why does it return a nill value?
Code: Select all
-- Import the io library
local io = require("io")
-- Open a file in write mode
local file = io.open("test.txt", "w")
-- Write some text to the file
file:write("Hello, Vectric Aspire!")
-- Close the file
file:close()