Venice
ComCd::GetFieldID
 
Gets the field identifier.
 
enum eComCdFld GetFieldID (
    BSTR bsFieldName
)
 
Parameters
bsFieldName
[in] A string containing the name of the field of which you want to know the identifier.
 
Return value
Identifier of the field, e.g. ccdfNullMass (C++) or eComCdFld.ccdfNullMass (C# / VB.NET).
 
Remarks
If an identifier is given for a field that does not exist, this method will return -1.
 
See Also
CreateComCd
GetFieldName
 
Samples
 
C++
 
// Retrieve the identifier of the 'Supplementary unit descr.'-field.
eComCdFld eFieldId = pComCd->GetFieldID ("SupplUnitDsc");

C#
 
// Retrieve the identifier of the 'Supplementary unit descr.'-field.
eComCdFld eFieldId = oComCd.GetFieldID ("SupplUnitDsc");

VBS
 
' Retrieve the identifier of the 'Supplementary unit descr.'-field.
Dim eFieldId
eFieldId = oComCd.GetFieldID("SupplUnitDsc")

VB.NET
 
' Retrieve the identifier of the 'Supplementary unit descr.'-field.
Dim eFieldId As eComCdFld
eFieldId = oComCd.GetFieldID("SupplUnitDsc")