global variables HP-PPL
|
02-24-2017, 08:04 PM
(This post was last modified: 02-24-2017 08:05 PM by compsystems.)
Post: #1
|
|||
|
|||
global variables HP-PPL
Hello if you define global variables without export, they are not displayed in the menu VAR or MEM, but if they exist, you can check it by executing more than once the next program
PHP Code: x:=0; Now if you define from the historal view x: = 9; y = 8; And executes the previous program these values are not called by input This shows that there are two types of global variables, one visible and one hidden, Is this good or not? |
|||
02-24-2017, 08:26 PM
Post: #2
|
|||
|
|||
RE: global variables HP-PPL
It is neither good nor bad. You just need to be aware of the scope of the variables and which has higher priority. It is no different than the following example:
Code: x:=0; myprogram() has a local variable named x that has higher priority than the x declared outside of myprogram(). Graph 3D | QPI | SolveSys |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)