expression on global scope not allowed New comment wing 2013.07.24 01:02 Dear all, what can I do? //+------------------------------------------------------------------+ //| testing.mq4 | //| | //| | //+------------------------------------------------------------------+ #property copyright "" #property link "" int a[4] = {1,2,3,4}; int b[5] = {10,11,12,13,14}; int aa, bb; aa = ArrayRange(a,0); bb = ArrayRange(b,0); int c[aa][bb][20]; //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { //---- //---- return(0); } //+------------------------------------------------------------------+ Many thanks for your kind help! wing combination of 2 indicator Price on the stop loss line Firebird indicator William Roeder 2013.07.24 01:16 #1 wing: what can I do?learn to code aa = ArrayRange(a,0); // not inside a function bb = ArrayRange(b,0); // int c[aa][bb][20]; // not constant sizes wing 2013.07.24 08:08 #2 what I mean is, is there any way that index of an array outside a function can be dynamic? I want to declare an array globally but it's index is dynamic. Simon Gniadkowski 2013.07.24 08:09 #3 wing: what I mean is, is there any way that index of an array outside a function can be dynamic? I want to declare an array globally but it's index is dynamic. No, resize it instead . . . William Roeder 2013.07.24 12:16 #4 and you can only resize the first index New comment
Dear all,
what can I do?
Many thanks for your kind help!
wing