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

C#
 
if (oPInvceDet.IsFieldVirtual (ePInvceDetFld.pidfSysNum))
    // This field can not be updated.

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

VB.NET
 
If oPInvceDet.IsFieldVirtual(ePInvceDetFld.pidfSysNum) Then
    ' This field can not be updated.
End If