Jump to content

Lua-Tables in V5


Andy
 Share

Recommended Posts

vor 2 Stunden schrieb ademes:

how to define a table in Lua that is available to all events?

Use the main script.

In the event manager, click the + sign and instead of adding an event or a modul, add a script.
You can have one main script per layout and that may hold your table and other constants.

 

And no, a table cannot be an object variable. Not yet, anyway.
But Neo is considering this option.

Edited by Goetz
Link to comment
Share on other sites

Hi,

vor 3 Stunden schrieb Goetz:

You can have one main script per layout and that may hold your table and other constants.

to avoid misunderstandings, you can have a "main script" per module. All scripts of all modules are finally merged together, so that a (sub)module can declare own global functions and constants.

Kind regards,

Neo

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...