Post Reply 
How can I have TWO separate Global Variables with the SAME Name?
01-31-2015, 01:37 AM
Post: #2
RE: How can I have TWO separate Global Variables with the SAME Name?
(01-31-2015 01:21 AM)bobkrohn Wrote:  How can I have TWO separate Global Variables with the SAME Name?
I dunno, but I did it.

Looking in Shift Mem/User Variables I see TWO with the exact same Name.

"SF" which is used in my programs. It's a REAL type
It's Declared at the top of the Source Project File.

What's more I can change the value on one of them and it does not affect the other!

The other problem is how do you get rid of them?
(or ANY variable for that matter, there is no Delete button)
"purge(SF)" doesn't work. (says no such Variable)

Tried to Clone Calc to Emulator for a screen shot but the double instance of the variable didn't come over.
So took the attached pic with my iPhone.

purge() deletes CAS variables only; if you have multiple programs that each export SF as a variable, that is one way to have several instances. It even happens with programs. Usually the most recently created program/variable has the higher priority. It may also be due to apps having the same exported variable, so that App.SF is different from just plain-old SF. The priority here is based on what the current app is.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How can I have TWO separate Global Variables with the SAME Name? - Han - 01-31-2015 01:37 AM



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