You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
That's exactly my point GoS...... but thanx....
Unfortunately.... U don't have a clue as to what I'm talking about...
But I appreciate your input....
Thanx
That is my frustration...
That's exactly my issue....
Change the variable name in your function to one that has not been used elsewhere, then you will not get the warning
Change the variable name in your function to one that has not been used elsewhere, then you will not get the warning
Change the variable name in your function to one that has not been used elsewhere, then you will not get the warning
Thanx GumRai.... but it's unique to this function.... so I'm not 100% sure how that helps.... If I don't declare the variable in the global context then I get an Error.... Maybe I should just forget about it.... It works.... soooo....let sleeping dogs lie.... it's just frustrating...
It cannot be unique to the function or you would not get the warning.
We don't know how the function is called, but if it is something like this
BarNumberLong=Bar_Number_Long(BarNumberLong); //In main code
Then you will get the warning because the variable is NOT unique to the function
In a case such as this, there is no need to have a parameter in your function and just
//BarNumberLong=Bar_Number_Long(BarNumberLong); //In main code Bar_Number_Long();
as the global variable will be given a new value in the function if necessary
.
It cannot be unique to the function or you would not get the warning.
We don't know how the function is called, but if it is something like this
Then you will get the warning because the variable is NOT unique to the function
In a case such as this, there is no need to have a parameter in your function and just
as the global variable will be given a new value in the function if necessary
.
Thanx GumRai
I'm still getting Error messages when I try that route.... but I now understand why I am getting the Warning messages... I'll do some research on the Error messages that I am getting and will try to sort this out...
Thanks for pointing me in the right direction...
Cheers