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

C#
 
if (oPOrderDet.IsFieldVirtual (ePOrderDetFld.prdfSysNum))
    // This field can not be updated.

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

VB.NET
 
If oPOrderDet.IsFieldVirtual(ePOrderDetFld.prdfSysNum) Then
    ' This field can not be updated.
End If