Passing Array as function parameter

 

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.

 
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


void PrintTradeTable(string aTradeCurPair[]) //function definition

{

Stuff

}

Reason: