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

Re: What's the deal on using numericref's args in function imbedded in a for loop?


  • To: Ernie Bonugli <ebonugli@xxxxxxxx>
  • Subject: Re: What's the deal on using numericref's args in function imbedded in a for loop?
  • From: Mike Eggleston <mikee@xxxxxxxxxxxx>
  • Date: Sun, 23 Mar 2003 19:50:15 -0800

PureBytes Links

Trading Reference Links

On Sun, 23 Mar 2003, Ernie Bonugli wrote:

> ,
> 
> Should this work?  Note the argument in foo function is a numericref.
> 
> for i = 0 to 4 begin
>   result = foo( array[i] );
>   end;
> 
> Ok the above does not work for me, so how about this:
> 
> for i = 0 to 4 begin
>   value3 = array[i];
>   result = foo( value3 );
>   array[i] = value3;
>   end;
> 
> Still no cigar, Any ideas?
> 
> Regards,
> Ernie
> ebonugli@xxxxxxxx
> 
> 
> 

Depends on what foo() does.
In foo() does it refer to the value of one (or more) bars ago?
If it does, then the value of one bar ago is the value of the
highest index passed into foo().

Mike