Download MetaTrader 5

MQL4: how to get name of array variable as a string for Print() function

To add comments, please log in or register
Sell your applications via the Market. It is secure!
richardmulder82 Mulder
richardmulder82 Mulder 2015.07.22 16:02 

Hi guys, 

I have made an generic function with an array parameter.
I call this function with different arrays, works nice...

Except one thing, i want to print status. Within that print, i want to show the array name that was handled on the moment of printing. 

Code snippet of function header: 

int BepaalWaarde(int& array[], string EntExit)

for example something like this: Print("Arrayname: ", array[].name); 


Thanks for your answers!


Kind Regards,



To add comments, please log in or register