Mike and Steve,

Thanks very much for your help.

TRFY

--- In [email protected], "trfy1120" <trfy1...@...> wrote:
>
> I have an array called lowest_roc_num.
> 
> If I use the test:
> 
>      JOHN = Ref(Lowest_ROC_NUM,0)==9;
> 
> JOHN gets the value of zero or 1 appropriately.
> 
> If I use the syntax:
> 
>     if (Ref(Lowest_ROC_NUM,0) == 9)
>       MARY=10;
> 
> I get an error message saying that the condition in an IF, WHILE or FOR 
> statement must be numeric or boolean, you cannot use an array here.  It then 
> says to use [] to refer to an element of the array.
> 
> I have two problems.  First, I thought REF was referring to an element of the 
> array rather than the whole array and, second, I don't know how to refer to 
> the current bar using [].
> 
> Thanks for any help.
> 
> TRFY
>


Reply via email to