PInvce::GetFieldName (Interface: PInvce)
 
Gets the field name.
 
BSTR GetFieldName (
    enum ePInvceFld eFieldID
)
 
Parameters
eFieldID
[in] Identifier of the field, e.g. pinfSysNum (C++) or ePInvceFld.pinfSysNum (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
CreatePInvce
GetFieldID
 
Samples
 
C++
 
// Retrieve the technical name of the 'system number'-field.
CString strFieldName = (LPCSTR)pPInvce->GetFieldName (pinfSysNum);

C#
 
// Retrieve the technical name of the 'system number'-field.
string strFieldName = oPInvce.GetFieldName (ePInvceFld.pinfSysNum);

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

VB.NET
 
' Retrieve the technical name of the 'system number'-field.
Dim strFieldName As String
strFieldName = oPInvce.GetFieldName(ePInvceFld.pinfSysNum)