Jump to content

Lua-Tables in V5


Empfohlene Beiträge

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.

Bearbeitet von Goetz
Link zu diesem Kommentar
Auf anderen Seiten teilen

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 zu diesem Kommentar
Auf anderen Seiten teilen

Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren

Du musst ein Benutzerkonto besitzen, um einen Kommentar verfassen zu können

Benutzerkonto erstellen

Neues Benutzerkonto für unsere Community erstellen.

Neues Benutzerkonto erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde dich hier an.

Jetzt anmelden
×
×
  • Neu erstellen...