[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Number of elements in an Array ?



PureBytes Links

Trading Reference Links

At 1:52 PM +0200 8/15/99, Philippe Lhermie wrote:

>1.Is it possible to define dynamically the number of elements in an Array ?
>Otherwise, will it slow down the calculation if I define the number of
>elements to 8000 :
>{MyArray[7999](0)}
>even if I do not use all of them almost of the time ?

The declaration just saves the space and initializes. It should be as 
large as you will ever use but you do not need to use it all. The 
amount you use can be a variable as in:

for j = 0 to jmax begin
    MyArray[j] = <something>;
end;

>
>2. according to Putt, an array can contain up to 8000 elements, is it still
>true with TSY2K ?
>I noticed that if I define a number of elements greater than 8000, the
>signal can still verified.


Don't know.

Bob Fulks