Thanks all for responses to my previous AFL coding query. I got to the
bottom of it in the end.

Just to keep you on your toes, I've got another problem!!!

I have a function, with a for...next loop in it.

function Example_Function( array, x)
{
        for(i=x;i<BarCount;i++)
        {
        blah_blah[i] = ......
        }
        return blah_blah;
}

Now, later in my main code I want to call this function with two
arrays... i.e.

XYZ = HHVBars(High,10);
Temp = Example_Function( High, XYZ);

Now, as XYZ changes, I want to call the function, it iterate through
the loop XYZ times, and return an array (or at least that part of it
that's been altered by the loop calculations).

However, I'm getting an error.. which seems to relate to the fact that
I can't initiate a for...next loop with it's number of iterations
defined by the value of an array.

If I can't, any ideas how I can achieve what I want...???

Many Thanks

Reply via email to