Exists Method

WRAPPER_API bool Exists(const BmgChar *name) const

 

Description

The Exists method indicates if there exists a CoordPoint in this collection with the specified name.  The specified name will be compared with the return value of the CoordPoint::get_Name() method.

 

Example

void CoordPointCollection_Exists(GEOCALCPBW_NAMESPACE::CoordPointCollection & cpc)

{

_towchar name("the name of a CoordPoint");

if(cpc.Exists(name.c_str()))

{

cpc.Remove(cpc.IndexWithName(name.c_str()));

}

}