PInvceDet::GetFieldName (Interface: PInvceDet)
 
Gets the field name.
 
BSTR GetFieldName (
    enum ePInvceDetFld eFieldID
)
 
Parameters
eFieldID
[in] Identifier of the field, e.g. pidfSysNum (C++) or ePInvceDetFld.pidfSysNum (C# / VB.NET).
 
Remark: In VBS, this field identifier enumerations cannot be used! You should use GetFieldID to get a valid field identifier.
 
Return value
A BSTR containing the technical name of the requested field.
 
See Also
CreatePInvceDet
GetFieldID
 
Samples
 
C++
 
// Retrieve the technical name of the 'system number'-field.
CString strFieldName = (LPCSTR)pPInvceDet->GetFieldName (pidfSysNum);

C#
 
// Retrieve the technical name of the 'system number'-field.
string strFieldName = oPInvceDet.GetFieldName (ePInvceDetFld.pidfSysNum);

VBS
 
' Retrieve the technical name of the 'system number'-field.
Dim strFieldName
strFieldName = oPInvceDet.GetFieldName(oPInvceDet.GetFieldID("SysNum"))

VB.NET
 
' Retrieve the technical name of the 'system number'-field.
Dim strFieldName As String
strFieldName = oPInvceDet.GetFieldName(ePInvceDetFld.pidfSysNum)