WRAPPER_API bool SetFolderName(long folderID, const BmgChar * folderName);
Sets the name of a folder that already exists in the view to the specified value.
void DataView_SetFolderName(GEOCALCPBW_NAMESPACE::DataView & dataView)
{
GEOCALCPBW_NAMESPACE::GeoBase::AngularUnitType, false);
try
{
_towchar folderName("Sample Angular Units");
_towchar folderNameUpdated("Updated Sample Angular Units");
ObjectType type = GEOCALCPBW_NAMESPACE::GeoBase::AngularUnitType;
long angularUnitFolder = DataView::GetFolderIDByObjectType(type);
long newFolderID = dataView->AddFolder(angularUnitFolder, folderName.c_str(), type);
dataView->SetFolderName(newFolderID, folderNameUpdated.c_str()))
}
catch(GEOCALCPBW_NAMESPACE::GeoCalcException & ex)
{
AfxMessageBox("AddFolder Failed");
}
}