Download MetaTrader 5
To add comments, please log in or register
Having questions to the author of an article? Discuss them on the Forum!
bluestacks
58
bluestacks 2016.01.11 11:41 

Hi there,


Is there someone here who knows how return an array on a function on MQL? Like if your are going to retrieve a data on CSV, instead of using different functions to get data one by one all of the data on the CSV,

i mean one row of data will be put on an array then when you use the function, you would just specify the index on the data to get the necessary values.


Thanks.

Ovo Cz
2951
Ovo Cz 2016.01.11 12:00  
You cannot return array, and you cannot assign array to another variable. You can only pass the array to a function as an argument and edit it in the function body.
whroeder1
13627
whroeder1 2016.01.11 13:18  
You can not return an array; pass the array as a reference.
/
To add comments, please log in or register