L-I-V/MQL-Tools

Struct arrays are not recognized as function parameters

Opened this issue · 3 comments

Current environment mql4

  1. The structure array cannot be recognized as a function parameter. (But it can be recognized normally in MetaEditor.)

image

2、Struct arrays are not recognized if & is used, but compile normally.

image

L-I-V commented

Hi, helloktity, the problem is related to the 'C/C++' extension, as the main part of the IntelliSense function used for working with MQL files is based on this extension. The 'C/C++' extension is not fully compatible with the MQL syntax, leading to errors. In the case of "void vegassss(VegasTrend &array[])," the 'C/C++' extension produces the error "array of reference is not allowed" causing arrays to not be recognized and type errors to occur. Unfortunately, at present, I do not have a solution to this problem.

Thank you, this is still a great tool that can double the efficiency of writing mql4, thanks again! ! !

I found a compromise method, which is to replace & with * when writing, so that the members of the structure can be identified, and then changed back to & when compiling

image