GetName
The short name of the Origin object, which can be a Column, a Layer, or a Page
Get the name of a worksheet or matrix layer
string GetName( )
BOOL GetName( string & str )
Name of the Origin object, or the Short Name if object has both long and short names.
TRUE for success, FALSE if object does not have a name.
EX1
// Get the Short Name of the active window void OriginObject_GetName_Ex1() { Page page = Project.Pages(); if(page) printf("The active window's short name is %s\n", page.GetName()); }
EX2
int OriginObject_GetName_Ex1() { WorksheetPage wp = Project.WorksheetPages(0); if(!wp) return -1; Page pg(wp.GetName()); Layer lay = pg.Layers(); // gets the active worksheet layer Worksheet wks = lay; if (wks) { string strName; wks.GetName(strName); out_str(strName); } return 0; }
Retrieves the name of a OriginObject.
OriginObject::SetName
origin.h