Please show your code if you need help.
antimetro: I need to create an array of a my class, if I declare the array before start function (outside of each functions) the array will be not created and the compiler launch an error.
- "launch an error" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires - meaningless. There are no mind readers here.
- We can not see your code. You have to post it using SRC
- Structures and Classes - MQL4 Documentation specifically states that you must have a default constructor to create an array of the class
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
Hi all,
I have a problem with mql4, I'm creating a script and I need to create an array of a my class, if I declare the array before start function (outside of each functions) the array will be not created and the compiler launch an error.
Then I tried to create a function which uses an parameter of type "my class" and it don't work, the compiler send an error "structure identifier cannot be used".
I can't understand, normally I write code in other language and always I can use an array of object as parameter
Thanks for any help