PureBytes Links
Trading Reference Links
|
On Wed, 05 Mar 2003, Gene Pope wrote:
> Hi all,
>
> I'm getting an error message with the following construction:
>
> For JJ = 1 to 11 begin
>
> if JJ = 1 then
> ArrayX[JJ,3] = ArrayY[JJ-1,5]
>
>
> The error message is "This word cannot start a statement."
>
> The highlighted "word" is "ArrayX".
>
> Is it that TS does not recognize an If...then immediately after
> For...begin??
>
> Best regards,
>
> Gene Pope
>
>
>
>
Try:
array: arr[100, 5](0);
vars: jj(0);
for jj = 1 to 11 begin
if jj = 1 then
arr[jj, 3] = arr[jj - 1, 5];
end;
|