PureBytes Links
Trading Reference Links
|
Array: ArrayX[100,5](0);
Array: ArrayY[100,5](0);
Vars: jj(0);
For JJ = 1 to 11 begin
if JJ = 1 then ArrayX[JJ,3] = ArrayY[JJ-1,5];
End;
The above works fine. Did you forget the ; ? ? ?
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Clyde Lee Chairman/CEO (Home of SwingMachine)
SYTECH Corporation email: clydelee@xxxxxxxxxxxx
7910 Westglen, Suite 105 Office: (713) 783-9540
Houston, TX 77063 Fax: (713) 783-1092
Details at: www.theswingmachine.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
----- Original Message -----
From: "Gene Pope" <gene@xxxxxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Cc: <Trading_Systems@xxxxxxxxxxxxxxx>
Sent: Wednesday, March 05, 2003 11:48 AM
Subject: "FOR" coding question
> 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
>
|