2.2.4.27.18 MatrixLayer::SetInternalData

Description

Replaced by SetInternalDataType. Kept for backwards compatibility.

Syntax

BOOL SetInternalData( UINT iType, BOOL bSaveData = TRUE, BOOL bSetViewData = TRUE )

Parameters

iType
[input] FSI_* data type constants defined in oc_const.h
bSaveData
[input] if TRUE, reset the view modes to data. default is TRUE
bSetViewData
[input] if TRUE, to backup the data and attempt to restore it after
changing type.default is TRUE

Return

TRUE for success, FALSE for failure

Examples

EX1

void MatrixLayer_SetInternalData_Ex1()
{
    MatrixPage mp = Project.MatrixPages(0);
    if(!mp)
        return;
    
    MatrixLayer ml(mp.GetName());
    if( ml.SetInternalData(FSI_USHORT) )    // make    a Matrix ushort and keep its data and show as data
        printf("Success to set internal data type!");
    else
        printf("Fail to set internal data type!");
}

Remark

See Also

MatrixLayer::SetInternalDataType

Header to Include

origin.h