GetIndex (class MKI_ATTRIBUTE_DATA) Changed in Version 2021.1 |
www.CAD6.com |
C++ Syntax__int32 MKI_ATTRIBUTE_DATA::GetIndex( __int16 f_nBlockType, const LPCWSTR f_pszName ) const;
Finds an attribute with the given type and name in the list.
While this list can technically contain a mix of different attribute types, you should be careful when mixing different attribute types within one list since (in the application) attributes are identified by their name only, and those names are only unique within each type.
ParametersBlockType [__int16] Type of attribute (see MKI_DB_ATTRIB_*). If negative, any attribute with the given Name will be found regardless of its attribute type. For sorting and access, only the general type ("local", "global", etc.) will be used, not the specific type ("local text", "global number", etc.). Name [const LPCWSTR] Attribute name to be searched.
Return ValueReturns the zero-based index in the list if successful, else -1.
|
CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH