2.2.4.6.6 DataObject::GetInternalDataType

Description

Get internal data type of the active matrix object.

Syntax

UINT GetInternalDataType( )

Parameters

Return

Data type, enum FSITYPE{

FSI_DOUBLE,
FSI_REAL,
FSI_SHORT,
FSI_LONG,
FSI_CHAR,
FSI_TEXT,
FSI_MIXED,
FSI_BYTE,
FSI_USHORT,
FSI_ULONG,
FSI_COMPLEX,

};

Examples

EX1

void DataObject_GetInternalDataType_ex1()
{
    WorksheetPage wksPage;
    wksPage.Create("origin");
    Worksheet wks(wksPage.GetName());
    
    Column col(wks, 0);
    if(col)
    {
        col.SetInternalDataType(FSI_BYTE);
        if( col.GetInternalDataType() == FSI_BYTE )
            printf("Data type of this column is BYTE!\n");
    }
}

EX2

void DataObject_GetInternalDataType_ex2()
{
	MatrixLayer ml = Project.ActiveLayer();
	if ( !ml )
	{
		printf("Can not access active matrixsheet");
		return;
	}
	MatrixObject mo = ml.MatrixObjects(0); //get first matrixobject
	printf("matrixobject's internal data type is %d\n", mo.GetInternalDataType());
	return;
}

Remark

See Also

DataObject::SetInternalDataType

Header to Include

origin.h