Hi All,
Probably a very simple code enquiry.
I have an array whose 'current' value I want to use to define the
length of a for...next loop.
Lets say,
DCPeriod=int(SmoothPeriod+0.5);
for(Countx=0;Countx==DCPeriod-1;Countx++)
{
RealPart=RealPart+sin(DTR*(360*(I2/Q2))*(SmoothX[Countx]));
ImagPart=ImagPart+cos(DTR*(360*(I2/Q2))*(SmoothX[Countx]));
}
Obviously this won't work... because DCPeriod is an array.
My question how do I access the 'last' value of DCPeriod...?
I have tried LastValue(DCPeriod) and it doesn't match DCPeriod when I
output them to the title bar for error checking...
What am I doing wrong guys...?