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

Re: [Trading_Systems] "FOR" coding question



PureBytes Links

Trading Reference Links

Thanks for your kind help!

I found it... the clue was from Stuart, who mentioned that I might be
assigning to an input.

Well, in fact, since this is a function, the array declaration is indeed an
input.

And that clue made me change the Input Type from NumericArray to
NumericArrayRef... that did the trick.

FYI all.

Best regards,

Gene

----- Original Message -----
From: "Gene Pope" <gene@xxxxxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Cc: <Trading_Systems@xxxxxxxxxxxxxxx>
Sent: Wednesday, March 05, 2003 12:48 PM
Subject: [Trading_Systems] "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