Venice
StockDocDet::IsFieldVirtual
 
Is the field virtual?
 
VARIANT_BOOL IsFieldVirtual (
    enum eStockDocDetFld eFieldID
)
 
Parameters
eFieldID
[in] Identifier of the field, e.g. scdfSysNum (C++) or eStockDocDetFld.scdfSysNum (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
CreateStockDocDet
 
Samples
 
C++
 
if (pStockDocDet->IsFieldVirtual (scdfSysNum))
    // This field can not be updated.

C#
 
if (oStockDocDet.IsFieldVirtual (eStockDocDetFld.scdfSysNum))
    // This field can not be updated.

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

VB.NET
 
If oStockDocDet.IsFieldVirtual(eStockDocDetFld.scdfSysNum) Then
    ' This field can not be updated.
End If