|
Gets the field name. |
|
|
BSTR GetFieldName ( enum eStockInfoFld eFieldID ) |
|
|
Parameters | eFieldID | [in] Identifier of the field, e.g. stofQuantity (C++) or eStockInfoFld.stofQuantity (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. | | Remarks |
| You have to call GetFirstChange (to fill the stock changes file) before you can use this method, otherwise an exception will be thrown. |
|
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
// Retrieve the technical name of the 'Quantity'-field.
CString strFieldName = (LPCSTR)pStockInfo->GetFieldName (stofQuantity);
|
|
|
C# |
|
// Retrieve the technical name of the 'Quantity'-field.
string strFieldName = oStockInfo.GetFieldName (eStockInfoFld.stofQuantity);
|
|
|
VBS |
|
' Retrieve the technical name of the 'Quantity'-field.
Dim strFieldName
strFieldName = oStockInfo.GetFieldName(oStockInfo.GetFieldID("Quantity"))
|
|
|
VB.NET |
|
' Retrieve the technical name of the 'Quantity'-field.
Dim strFieldName As String
strFieldName = oStockInfo.GetFieldName(eStockInfoFld.stofQuantity)
|
|