Download MetaTrader 5

pass object by reference

To add comments, please log in or register
jshumaker
507
jshumaker  
I have a class called waves and a function in that class called calc.  I want to pass an object of type waves as a parameter to the calc function.  I got an error stating 'objects are passed by reference only'.  I searched the forum on how to pass an object by reference and was not able to find anything useful.
Alain Verleyen
Moderator
31203
Alain Verleyen  
jshumaker:
I have a class called waves and a function in that class called calc.  I want to pass an object of type waves as a parameter to the calc function.  I got an error stating 'objects are passed by reference only'.  I searched the forum on how to pass an object by reference and was not able to find anything useful.
See this article, it would help.
To add comments, please log in or register