MetaEditor5 - Function name missing in suggeted function list.

yahuma  
Hello,

During coding I split code in project into a different ".mq5" and ".mqh" files for clarity.

The problem is that functions which are placed in ".mq5" file other than main file are not displayed in suggested function list.

When I create header file ".mqh" for particullar ".mq5" file with functions declarations and when I include this ".mqh" file to project main ".mq5" file than function names are displayed in suggested function list, but there are warnings in compilation logs - "no #import declaration".

Do you know how any way to handle this without header file and function declarations or a way to disable those warnings?


MetaEditor feature description: "Auto substitution of function names"
My ME: MetaEditor 5.00 - b.3465 - 13.10.2022

Best Regards,
B
Intelligent management - Developing programs - MetaEditor Help
Intelligent management - Developing programs - MetaEditor Help
  • www.metatrader5.com
For ease of programming, MetaEditor provides various tools from auto substitutions of names and tips to functions up to bookmarks and hot keys...
yahuma  
I solved this problem by adding import declaration with ".mqh" filename:

#import "BarUtils.mq5"
int  ChartXYToBarIdx(int x, int y);
void ChartXYToBarIdxAndPrice(int x, int y, int &barIdx, double &price);
#import

and warnings disappeared.

Topic to close.

Reason: