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)
- is it possible to return an array from a function ?
- [ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5.
- Insert array elements value inside a loop
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