I have this statement, (( Array:IntraBarPersist Days[120,1](0); )) and I would like the number 120 was an input.
is it possible? I tried to do
input: dayss(120)
Array:IntraBarPersist Days[dayss,1](0);
but does not work.
thanks
array input
- Stan Bokov
- Posts: 963
- Joined: 18 Dec 2009
- Has thanked: 367 times
- Been thanked: 302 times
Re: array input
You could use a simple numeric variable as input, and use that to resize a dynamic array. The only restriction is it has to be a 1-dimensional array, not 2 as you appear to be using. So, if you can relax that condition, you could use something like:I have seen, there is a correct way to do this'?
inputs: array1.size(10);
arrays: IntraBarPersist array1[](0);
once array_setmaxindex(array1,array1.size);