IndexWithName Method

WRAPPER_API long IndexWithName(const BmgChar *name) const

 

Description

The IndexWithName method indicates the index of the CoordPoint with the specified name.  If no such CoordPoint exists, this method will return -1.

 

Example

void CoordPointCollection_IndexWithName(GEOCALCPBW_NAMESPACE::CoordPointCollection & cpc)

{

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

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

{

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

}

}