Download MetaTrader 5
To add comments, please log in or register
MQL5 library has more than 1500 apps already. Contribute your own one!
fridayda13
10
fridayda13 2016.07.15 11:42 

Hi,

I want to know how the Print(...) function was coded, because I want to write such a function myself,

which takes infinite number of parameters.

Does anyone know? 

Stanislav Korotky
17346
Stanislav Korotky 2016.07.15 12:29  
You can't do that directly in MQL. But you can write a function with several last parameters having default value. Also you may define multiple functions with the same name but different parameter list.
fridayda13
10
fridayda13 2016.07.15 13:14  
Stanislav Korotky:
You can't do that directly in MQL. But you can write a function with several last parameters having default value. Also you may define multiple functions with the same name but different parameter list.
Thanks!
/
To add comments, please log in or register