Venice
CurStock::IsFieldVirtual
 
Is the field virtual?
 
VARIANT_BOOL IsFieldVirtual (
    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.
 
See Also
CreateCurStock
 
Samples
 
C++
 
if (pCurStock->IsFieldVirtual (stcfStock))
    // This field can not be updated.

C#
 
if (oCurStock.IsFieldVirtual (eCurStockFld.stcfStock))
    // This field can not be updated.

VBS
 
If oCurStock.IsFieldVirtual(oCurStock.GetFieldID("Stock")) Then
    ' This field can not be updated.
End If

VB.NET
 
If oCurStock.IsFieldVirtual(eCurStockFld.stcfStock) Then
    ' This field can not be updated.
End If