CurStock::GetFieldName (Interface: CurStock)
 
Gets the field name.
 
BSTR GetFieldName (
    enum eCurStockFld eFieldID
)
 
Parameters
eFieldID
[in] Identifier of the field, e.g. stcfStock (C++) or eCurStockFld.stcfStock (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
CreateCurStock
GetFieldID
 
Samples
 
C++
 
// Retrieve the technical name of the 'Stock units in stock'-field.
CString strFieldName = (LPCSTR)pCurStock->GetFieldName (stcfStock);

C#
 
// Retrieve the technical name of the 'Stock units in stock'-field.
string strFieldName = oCurStock.GetFieldName (eCurStockFld.stcfStock);

VBS
 
' Retrieve the technical name of the 'Stock units in stock'-field.
Dim strFieldName
strFieldName = oCurStock.GetFieldName(oCurStock.GetFieldID("Stock"))

VB.NET
 
' Retrieve the technical name of the 'Stock units in stock'-field.
Dim strFieldName As String
strFieldName = oCurStock.GetFieldName(eCurStockFld.stcfStock)