HP Forums

Full Version: How to use AVars and AFiles
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have 2 Lists occupying memory. They were both created from the home screen. Their names are Gasses and GasVars. Gasses has 42 values, GasVars has 32 values. They are both used by an App I created. I have been unable to figure out how to move the contents of these 2 Lists to either an AVars or AFiles, so I can send them along as part of the App. Is a List considered a Var or a File? Does anyone know how to do this? Thanks
rcf
Either and both.

Make sure the app is running, then do AVars("YourAppVarName"):=Gasses or AFiles("YourFileName"):=GasVars

The difference comes in the way you interact with them. A file cannot be used and accessed directly. You will need to store into a variable to use it. The file *will not* take up the limited system RAM you have except for the instant you are using it. A variable will *always* stay in memory and be taking that RAM even when your app is not in use.

LOCAL mylist;
mylist:=AFiles("YourFileName");
mylist(1)
...

vs

YourVarName(1)
...

So basically it boils down to how large your variables are. If you are trying to store 3MB of data for example, a file would most likely be the way to go.
Reference URL's