Home AMX User Forum NetLinx Studio

Structures as Module Parameters

Is it possible to pass structures as parameters to modules? I have ten instances of a structure, and I want a module to keep them up to date.

Comments

  • viningvining Posts: 4,368
    Unfortunately no. You can pass the data as dimensional array and populate the structures in the module. You can also do a VAR_TO_XML and load a structure in xml format to ram and read that file in the module through the XML_TO_VAR function to populate it. The writing to ram method will also allow to to effectively make the structure values persistent.
  • vining wrote:
    Unfortunately no. You can pass the data as dimensional array and populate the structures in the module. You can also do a VAR_TO_XML and load a structure in xml format to ram and read that file in the module through the XML_TO_VAR function to populate it. The writing to ram method will also allow to to effectively make the structure values persistent.

    Thanks for letting me know this isn't possible. I appreciate it.
Sign In or Register to comment.