GetSourceDim
It returns the dimensions of the source Matrix used by the constructor matrix(MatrixObject &mo, BOOL bWriteback = FALSE) if bWriteback is TRUE. See that constructor and the accompanying example for more details.
bool GetSourceDim( int & nRows, int & nCols )
TRUE if bWriteback was TRUE when calling the constructor, otherwise FALSE.
EX1
// Have a matrix with the name "MBook1" in the project, with some values. void matrix_GetSourceDim_ex1() { MatrixObject mo("MBook1", 0); matrix m(mo, TRUE); int nRows, nCols; if (m.GetSourceDim(nRows, nCols)) printf("rows = %d\tcols=%d\n", nRows, nCols); }
origin.h