CurStock::GetFieldID (Interface: CurStock)
 
Gets the field identifier.
 
enum eCurStockFld 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. stcfStock (C++) or eCurStockFld.stcfStock (C# / VB.NET).
 
Remarks
If an identifier is given for a field that does not exist, this method will return -1.
 
See Also
CreateCurStock
GetFieldName
 
Samples
 
C++
 
// Retrieve the identifier of the 'Stock units in stock'-field.
eCurStockFld eFieldId = pCurStock->GetFieldID ("Stock");

C#
 
// Retrieve the identifier of the 'Stock units in stock'-field.
eCurStockFld eFieldId = oCurStock.GetFieldID ("Stock");

VBS
 
' Retrieve the identifier of the 'Stock units in stock'-field.
Dim eFieldId
eFieldId = oCurStock.GetFieldID("Stock")

VB.NET
 
' Retrieve the identifier of the 'Stock units in stock'-field.
Dim eFieldId As eCurStockFld
eFieldId = oCurStock.GetFieldID("Stock")