SetInternalDataType
Set internal data type of one Column/MatrixObject.
BOOL SetInternalDataType( UINT nType, DWORD dwFlags = 0 )
};
TRUE for success, FALSE for failure.
EX1
// Convert the internal storage type for data to BYTE // Keep the data (reduced resolution) and the current View mode void DataObject_SetInternalData_ex1() { MatrixPage mp; mp.Create("origin"); MatrixLayer mlay(mp.GetName()); if(!mlay) return; MatrixObject mobj = mlay.MatrixObjects(0); // Most Matrix windows in Origin have only one MatrixObject if(mobj.SetInternalData(FSI_BYTE, OCD_RESTORE)) out_str("successfully converted into BYTE matrix"); else out_str("conversion failed"); }
Set the internal data type for all the matrix objects in the layer. If matrix is already the correct internal type, this function will do nothing. If the matrix only has image without data, bSaveData set to TRUE will convert the image into data so that HasData will become TRUE after this command.
DataObject::GetInternalDataType
origin.h