This function will implement the suggested changes to the active matrix window...void test(double dThreshold)
{
MatrixLayer ml = Project.ActiveLayer();
if( !ml )
return;
ml.SetInternalData(FSI_DOUBLE); // set data type to double
Matrix mat(ml);
int nCols = mat.GetNumCols();
int nRows = mat.GetNumRows();
for(int i=0;i<nRows;i++)
{
for(int j=0;j<nCols;j++)
mat[i][j] = mat[i][j]<dThreshold ? NANUM : mat[i][j];
}
}
quote:
Mainly I need to be able to write to worksheets.