2.2.3.6.7 Dataset::GetName

Description

Get the name of an internal Origin data set.


Syntax

BOOL GetName( string & strName )


string GetName( )

Parameters

strName
[output]Returned name of an internal Origin data set

Return

Returns TRUE on successful exit and FALSE on failure. Also returns the name of an internal Origin data set.


Returns the name of an internal Origin data set.

Examples

EX1

void Dataset_GetName_ex1()
{
    // a Worksheet with at least 1 column must exist prior to execution
    Worksheet wks=Project.ActiveLayer();
    if (wks)
    {       
        string strName;
        Dataset    dsA(wks, 0);
        dsA.GetName(strName);
        out_str("Data set name is " + strName);
    }
}


EX2

void Dataset_GetName_ex2()
{
    // a Worksheet with at least 1 column must exist prior to execution
    Worksheet wks=Project.ActiveLayer();
    if (wks)
    {     
        string strName;
        Dataset dsA(wks, 0);
        strName = dsA.GetName();
        out_str("Data set name is " + strName);
    }
}

Remark

See Also

Header to Include

origin.h