Download MetaTrader 5

im trying to compile mql4 file into ex4 in the metaeditor but it gives me an error " variable already defined "

To add comments, please log in or register
Yosef Erenreich
370
Yosef Erenreich  

it shows that line.

picture attached

Files:
error.PNG 20 kb
whroeder1
16764
whroeder1  
  1. Don't add an image, just paste the code using SRC
  2. You have a variable named "i" somewhere above that "already defined."
Yosef Erenreich
370
Yosef Erenreich  

i dont see no i variable previous to that .

what can i do?

Fernando Carreiro
3868
Fernando Carreiro  
Yosef Erenreich: i dont see no i variable previous to that. what can i do?
It is impossible difficult for us to be able to help you if you don't show your code.
Mohammad Hossein Sadeghi
2060
Mohammad Hossein Sadeghi  
Yosef Erenreich:

it shows that line.

picture attached

You probably need to use following property identifier at the beginning of your code:

#property strict
Yosef Erenreich
370
Yosef Erenreich  

thanks . it was the property strict

Yosef Erenreich
370
Yosef Erenreich  

thanks god

Alain Verleyen
Moderator
34405
Alain Verleyen  
Mohammad Hossein Sadeghi:
You probably need to use following property identifier at the beginning of your code:

#property strict
Seems you are god. :-D
Mohammad Hossein Sadeghi
2060
Mohammad Hossein Sadeghi  
Alain Verleyen:
Seems you are god. :-D
It only seems :)
The god I believe in, is Allah.
Mohammad Hossein Sadeghi
2060
Mohammad Hossein Sadeghi  
Yosef Erenreich:

thanks . it was the property strict

You're welcome.
To add comments, please log in or register