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

Re: Array Question



PureBytes Links

Trading Reference Links

No, one array can't contain BOTH numeric and string
elements. But you can have one string array and one
numeric array with the same dimensions and use the
same index for both. For example:

Var: n(0);
Array: StrArray[10](0), NumArray[10](0);

For n=0 to 10 begin
   StrArray[n] = "This is string message number
"+NumToStr(n,0);
   numArray[n] = Close[n];
end;


Victor Cuadra



--- Randy <rdsmith5@xxxxxxxx> wrote:
> Can anyone tell me if an array can contain both
> numeric and text string
> elements?
> 
> Thanks
> Randy Smith
> 


=====

Victor C.