ParameterNameAtIndex Method

public const BmgChar *ParameterNameAtIndex(long index) const

 

Description

The ParameterNameAtIndex method indicates the name of the parameter at the specified index in this ParameterCollection.  The ParameterCollection is a 0-based collection.  If the specified index is not within the bounds of the ParameterCollection, a GeoCalcException will be thrown with an ErrorCode specifying InvalidValue.

 

Example

void ParameterCollection_ParameterNameAtIndex(GeoCalc.ParameterCollection & pc)

{

for(int i = 0; i < pc.get_Count(); i++)

{

const BmgChar * parName = pc.ParameterNameAtIndex(i);

if(pc.get_ParameterType(parName) == GeoCalc.ParameterCollection.ItemType.StringValue)

{

const BmgChar * stringVal = pc.get_StringItem(parName);

}

}

}