PureBytes Links
Trading Reference Links
|
>
> I am using an array in a showme, and I would like to be able to set its size
> through an input variable, such as:
>
> inputs: ArraySize(499);
>
> array: MyArray[10, ArraySize] (0);
>
> When I try to do this, the EL parser errors with "A number expected here"
> error.
>
>
> Is there any way to do this? Any workaround? Or must array dimensions
> always be static?
No. No. Yes.
But why not just use the largest array size you think you will need
plus 20-50% more? It uses just a little more memory. It does not matter
if they are not used.
|