2.2.4.38.31 Project::GetObject

Description

Retrieves Origin object given the object unique ID

Syntax

OriginObject GetObject( UINT uid, LPCSTR lpcszGUID = NULL, BOOL bCreateInternalClass = FALSE )

Parameters

uid
[input] ID of object
lpcszGUID
[input] optional global identifier
bCreateInternalClass
[input] internal use

Return

OriginObject if object with unique ID equal to uid passed to function exists

Examples

EX1

void Project_GetObject_ex1()
{
    WorksheetPage wks("Book1");
    UINT uID = wks.GetUID(TRUE);
    
    Page  pg;
    pg = (Page)Project.GetObject(uID);    
    out_str(pg.GetName());
}

Remark

See Also

Project::GetDataObject

Header to Include

origin.h