05-03-2016, 12:54 AM
I've started to fix up some old programs to be compatible with the latest firmware releases. A while back the function AVars() was added. However, I'm confused about what this actually does and how to best use it.
In my app I can declare:
and this will create a variable that is scoped to the app. In other words I can access it from Home by either:
or simply
if my current app is "MyApp".
Alternatively I can write:
But the result seems the same. Why bother with AVars at all?
In my app I can declare:
Code:
EXPORT foo:="foo";
and this will create a variable that is scoped to the app. In other words I can access it from Home by either:
Code:
MyApp.foo
or simply
Code:
foo
if my current app is "MyApp".
Alternatively I can write:
Code:
foo;
function myFunc()
begin
AVars("foo"):="foo";
end;
But the result seems the same. Why bother with AVars at all?