Remove Method

WRAPPER_API bool Remove(const BmgChar *name)

 

Description

The Remove method removes a the parameter with the specified name from the ParameterCollection.  If the specified name does not correspond to parameter in this ParameterCollection, a GeoCalcException will be thrown with an ErrorCode indicating ParameterNotFound.

 

Example

void ParameterCollection_Remove(GEOCALCPBW_NAMESPACE::ParameterCollection & pc, BmgChar * parName)

{

if(pc.Exists(parName))

{

if(! pc.Remove(parName))

{

AfxMessageBox("Remove failed");

}

}

}