PowerBox Plug-in hint 2: using multiple script libraries

11 views
Skip to first unread message

info.sim...@googlemail.com

unread,
Jul 31, 2024, 7:42:28 AM7/31/24
to Notecase Pro
If you want to use more than one script library in you plugin - as I do in the PowerBox PlugIn - it is handy to use one script library as a "Master Library"
In the "Master Library" all constants are defined to make sure all routines are really using the same constant value - otherwise I wish you happy debugging ;-)
In addition, this "Master Library" is loading all other script libraries. Therefore there is only one place to edit to ensure all routines have access to all script libraries.

Another positive side effect is a clean code in any routine as it will only call / load the "Master Library". Below code is all it takes to make all constants and all routines available.

-- ==============================================================
-- load modules
-- ==============================================================
nScriptDocID = Nc_Script_DocID_Get()
strPluginLibrary = "2xlLLVCdKiBRN9RSaiehgg"
Nc_Script_Execute(nScriptDocID, strPluginLibrary)

Reply all
Reply to author
Forward
0 new messages