SetFolderName

public bool SetFolderName(long folderID, const BmgChar * folderName);

 

Description

Sets the name of a folder that already exists in the view to the specified value.

 

Example

void DataView_SetFolderName(GeoCalc.DataView & dataView)

{

System.Object.AngularUnitType, false);

try

{

string folderName("Sample Angular Units");

string folderNameUpdated("Updated Sample Angular Units");

ObjectType type = System.Object.AngularUnitType;

long angularUnitFolder = DataView.GetFolderIDByObjectType(type);

long newFolderID = dataView->AddFolder(angularUnitFolder, folderName.c_str(), type);

dataView->SetFolderName(newFolderID, folderNameUpdated.c_str()))

}

catch(GeoCalc.GeoCalcException & ex)

{

AfxMessageBox("AddFolder Failed");

}

}