The array initialization

 
Why does not MQL4 allows to initialize the array from a variable?
int a=6;
double array[a];
Why is it numerical only?
double array[6];
I would like to initialise array from "Bars"
double array[Bars];
-Stan
 
double array[6]={1,2,3,4,5,6};
"Variables"
first read then ask
for dynamical resizing use ArrayResize function.
 
double array[6]={1,2,3,4,5,6};
"Variables"
first read then ask
for dynamical resizing use ArrayResize function.

I have read the above URL.
However, it states:
int a [50]; //A one-dimensional array of 50 integers.

I want substitute numerical 50 with a variabe which has value 50.
int x=50;
int a[x];
How do you do that?
-Stan
 
once more. use ArrayResize function
 
once more. use ArrayResize function

Thanks Slawa, it works.
I was confused with your sample in the manual which shows numerical rather than variable too.
-Stan
Reason: