I'm just wondering that is it possible to get an array's name (identifier) that was passed to a function? For example:
Any ideas? I would like to use it for debugging purposes. (Generating a warning with the array's name in it)
- MQL5 Wizard: Development of trading robots for MetaTrader 5
- Development of applications in MetaQuotes Language 5 (MQL5)
- MetaEditor - Professional editor of trading applications
Well, I guess that it's impossible, because the code is translated into machine code, hence variable names cannot be retrieved. But tell me if I'm wrong.
It's impossible. You cann use __Function__.
Documentation on MQL5: Standard Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
- www.mql5.com
Standard Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions - Documentation on MQL5
Okay, thanks Rosh!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register