persistent values in Modules
eddymouse
Posts: 67
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
0
Comments
Sadly, persistent variables do not work in Modules!
You could write them to an XML file on the disk.
Exactly! Now I'm trying to follow the manual. But It's not so clear....
Thank you!
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...
You can actually pass in a persistent variable to a module. The variable needs to be declared outside the module.