SetNumCols
Set the number of columns and keep same number of rows. Same as SetSize(GetNumRows(), nCols, OCD_RESTORE | OCD_INITDATA) so the resulting matrix will restore original data and there is no undo, also new cells will be filled with missing values
BOOL SetNumCols( uint nCols )
Returns TRUE on successful exit and FALSE on failure.
EX1
// Set number of columns in a matrix to 100 // Requires active matrix window void MatrixObject_SetNumCols_Ex1() { MatrixLayer ml = Project.ActiveLayer(); if(ml) { BOOL bRet = ml.SetNumCols(100); printf("%u Columns\n", ml.GetNumCols()); } else printf("Matrix window not active.\n"); }
MatrixObject::SetSize, MatrixObject::SetNumRows, MatrixObject::GetNumRows, MatrixObject::GetNumCols, Datasheet::GetNumRows, Datasheet::GetNumCols, Datasheet::SetNumRows
origin.h