Question to LineOfZERO Warnings

Post Reply
genaja
Trader
Posts: 52
Joined: Wed Mar 21, 2012 12:42 pm

Question to LineOfZERO Warnings

Post by genaja »

Hi volks,

I have changed the russian texts from "Exp - LineOfZERO.mq4" to english.

At compilation I received a warning message, that I can´t find at the http://www.mql5.com/en/docs/constants/e ... ngscompile.

What says:
declaration of 'OP' hides global declaration at line 11 10.7 LINE OF ZERO.mq4 25 22

Means that, that the code of line 25 overrides the value of the global var?

Thanks a lot.

Attached the translatet indi.
You do not have the required permissions to view the files attached to this post.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Question to LineOfZERO Warnings

Post by milanese »

genaja » Fri Jun 13, 2014 8:54 am wrote:Hi volks,

I have changed the russian texts from "Exp - LineOfZERO.mq4" to english.

At compilation I received a warning message, that I can´t find at the http://www.mql5.com/en/docs/constants/e ... ngscompile.

What says:
declaration of 'OP' hides global declaration at line 11 10.7 LINE OF ZERO.mq4 25 22

Means that, that the code of line 25 overrides the value of the global var?

Thanks a lot.

Attached the translatet indi.
you should only one time use the same name for a variable, attached the version that gives no warnings..
10.7 LineOfZero6xx.mq4
Cheers :)

Tommaso
You do not have the required permissions to view the files attached to this post.
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
genaja
Trader
Posts: 52
Joined: Wed Mar 21, 2012 12:42 pm

Question to LineOfZERO Warnings

Post by genaja »

you should only one time use the same name for a variable, attached the version that gives no warnings..

Cheers :)

Tommaso
Hi Tommaso,

thanks for your great help!

Var names only one times, thats clear.

Is the global set for OP only for this line:
SetHLine(DarkOrange,"LineofZERO",startZERO(OP));

And after that the value for startZERO(OP) comes out of the function?
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Question to LineOfZERO Warnings

Post by milanese »

genaja » Fri Jun 13, 2014 10:54 am wrote:
you should only one time use the same name for a variable, attached the version that gives no warnings..

Cheers :)

Tommaso
Hi Tommaso,

thanks for your great help!

Var names only one times, thats clear.

Is the global set for OP only for this line:
SetHLine(DarkOrange,"LineofZERO",startZERO(OP));

And after that the value for startZERO(OP) comes out of the function?
you call the function with giving the value of OP to the new varibale int op, so op has the same value like OP

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
genaja
Trader
Posts: 52
Joined: Wed Mar 21, 2012 12:42 pm

Question to LineOfZERO Warnings

Post by genaja »

you call the function with giving the value of OP to the new varibale int op, so op has the same value like OP

o.k. thanks a lot!
Post Reply

Return to “Coders Hangout”