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

C#
 
if (oPInvce.IsFieldVirtual (ePInvceFld.pinfSysNum))
    // This field can not be updated.

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

VB.NET
 
If oPInvce.IsFieldVirtual(ePInvceFld.pinfSysNum) Then
    ' This field can not be updated.
End If