andmi:
Hi,
How can I pass an array as a function parameter? There is no Array datatype, so I am lost in trying to do that.
Ideally what I would like to do is (I realize that syntax is incorrect):
int myCalledFunction([whatever datatype] myArray){
Alert(ArraySize(myArray));
}
int callingFunction(){
double newArray[10];
myCalledFunction(newArray);
}
Thank you very much.
Like this....
string aTradeCurPair[8]; //declaration
PrintTradeTable(aTradeCurPair); //call
{
Stuff
}

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
Hi,
How can I pass an array as a function parameter? There is no Array datatype, so I am lost in trying to do that.
Ideally what I would like to do is (I realize that syntax is incorrect):
int myCalledFunction([whatever datatype] myArray){
Alert(ArraySize(myArray));
}
int callingFunction(){
double newArray[10];
myCalledFunction(newArray);
}
Thank you very much.