Variables global to a program
|
12-22-2013, 05:51 AM
(This post was last modified: 12-22-2013 06:21 AM by Michael de Estrada.)
Post: #10
|
|||
|
|||
RE: Variables global to a program
(12-22-2013 04:43 AM)Han Wrote: Wow ! So, if you fail to explicitly initialize variables that are used as counters you will get unpredictable results. Also, I created a second program TEST1() in a separate program group with MYVAR; and it started at 1 and is not in sync with the MYVAR in TEST(). So, the variable name is not unique, and values are being stored at different locations. This is crazy. Also, if I change the variable name to say MYVAR1, it resets to zero and increments again. Just for yucks, I did a soft reset (On Symb), but it did not reset these values. I've never encountered any programming languages that worked like this, and am having a hard time understanding the purpose if any. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)