Post Reply 
variable initial value - bug? (rev. 8151)
09-26-2015, 04:33 PM
Post: #6
RE: variable initial value - bug? (rev. 8151)
If I am understanding you correctly, you are wondering why the value is not set to 1 on each execution.

If so, the reason here is simple. The variable is initialized *on compile time*. Nothing with your "local k:=1" is executed when you run your function. Rather, when you enter and then exit the editor you will see the value initialized because your program was parsed, functions created and loaded into the system and so on.

Basically, the only difference between EXPORT k:=1 and LOCAL k:=1 is that that the rest of the system can see the first one, while only the functions in your file can see the second.

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: variable initial value - bug? (rev. 8151) - Tim Wessman - 09-26-2015 04:33 PM



User(s) browsing this thread: 1 Guest(s)