persistent values in Modules
eddymouse
Junior Member
Hi, How can I memory persistent variables in Modules? I need to write in a file? How the files system work? Where can I find more information about?
Thank you
Alex
Thank you
Alex
Comments
-
Hi
Sadly, persistent variables do not work in Modules! -
Hi, How can I memory persistent variables in Modules? I need to write in a file? How the files system work? Where can I find more information about?
Thank you
Alex
You could write them to an XML file on the disk. -
I think the original poster knows this and is asking for details on how to perform file-writing skills within Netlinx. Since I've never done this I can't help any, sorry.ericmedley wrote: »You could write them to an XML file on the disk. -
I think the original poster knows this and is asking for details on how to perform file-writing skills within Netlinx. Since I've never done this I can't help any, sorry.
Exactly! Now I'm trying to follow the manual. But It's not so clear....
Thank you! -
While waiting....
Do as I am doing... while waiting for someone to provide detailed info, read NetLinx Keywords help ROUGHLY and THROUGHLY.
click Help, NetLinx Keywords Help, in Index tab type file, and you will find FILE_COPY, FILE_CLOSE, FILE_OPEN, ....etc.
I think after few hours of tryouts you will find out what's the deal with files operations in Netlinx, and then start your own "HOWTO: Files in Netlinx" thread, and I guess it will be a great contribution from you...
-
Hi, How can I memory persistent variables in Modules? I need to write in a file? How the files system work? Where can I find more information about?
Thank you
Alex
You can actually pass in a persistent variable to a module. The variable needs to be declared outside the module.DEFINE_VARIABLE PERSISTENT CHAR cWhatEver[100]; DEFINE_START DEFINE_MODULE 'Whatever blah blah' modBlah(vdvStuff, dvStuff, cWhatEver);
-
I'll usually do what AMXJeff suggests and declare it outside the module, then pass it as a parameter. If it's something more complex, like a structure, or an internal database, I'll write it to a file.
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums