How do you set a multi-dimentional array to 0?
Well, what value do you get when you create it?
//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
int start(){
double array[32][32][32];
int i, j, k, count;
Print("start");
for ( i = 0; i < 32; i++){
for ( j = 0; j < 32; j++){
for ( k = 0; k < 32; k++){
if(array[i][j][k] != 0) Print(array[i][j][k]);
count++;
}
}
}
Print("End - checked "+count+" elements");
return(0);
}
I see it is all "0" to start.
Use similar code to "set"
I just assumed ArrayInitialize() wouldn't work on multi-dimensional arrays, silly me.
thanks