struct member undefined
-
I keep getting the error "struct member undefined" when I try to compile to .ex4.
How do I fix this?
-
@bluemoon You might share the project here and we may have a look.
However, compile it 8n strategy tester, see which line the error is and scroll a bit up in order to maybe see which block is causing the error. -
Following is the code I see in MetaEditor. Even if I delete this code, it keeps coming back when I import it back in FXDreema.
My error message complains about "BuySell222"
public: /* Custom methods */ virtual datetime _ObjTime1_() {return ObjTime1._execute_();} virtual double _ObjPrice1_() { ObjPrice1.Symbol = CurrentSymbol(); ObjPrice1.Period = CurrentTimeframe(); return ObjPrice1._execute_(); } virtual string _ObjText_() { ObjText.Text = v::BuySell222; return ObjText._execute_(); } -
@bluemoon This bug happens when you insert a variable to some field (so it turns blue), but the builder doesn't actually register it as a variable (for some reason, maybe there was already some value in the field).
Solution: as Philipps said, go to your metaeditor and find the corresponding block ID -> then return to the builder and re-create that block.
-
Hi Roar
I am sorry I have not done this before. Can you please provide more specific details about how to find the block ID from Meta Trader. Once I find that block ID, will deleting that block solve the problem?
Regards
-
Never mind. I was able to locate the block. Thank you very much for your help Roar and Philipps!!!
-
@roar you have to compile it in the metaeditor, then you get errors with the lines they are in, and in the comment you see the number of the block it is in of fxdreema. This block rebuild and use it. Thanks for the help roar.
-