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

LinRegSlope II



PureBytes Links

Trading Reference Links

Tomasz,

it is really NOT obvious(for me)
to call an AFL function in the plugin of an other function

it is easy to call it alone
but ????????? to use it inside an other function,

stephane


AmiVar VSlopeCall( int NumArgs, AmiVar *ArgsTable )
{
AmiVar arg[ 2 ];
float *aa = ArgsTable[ 0 ].array; 
float bb = ArgsTable[ 1 ].val; 
arg[ 0 ].type = VAR_ARRAY;
arg[ 0 ].array = aa;
arg[ 1 ].type = VAR_FLOAT;
arg[ 1 ].val = bb;
AmiVar result = gSite.CallFunction( "LinRegSlope", 2, arg );
return result;
}