Venice
StockDoc::IsFieldPublic
 
Is the field public?
 
VARIANT_BOOL IsFieldPublic (
    enum eStockDocFld eFieldID
)
 
Parameters
eFieldID
[in] Identifier of the field, e.g. stdfSysNum (C++) or eStockDocFld.stdfSysNum (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
CreateStockDoc
 
Samples
 
C++
 
if (pStockDoc->IsFieldPublic (stdfSysNum))
    // This field can be updated.

C#
 
if (oStockDoc.IsFieldPublic (eStockDocFld.stdfSysNum))
    // This field can be updated.

VBS
 
If oStockDoc.IsFieldPublic(oStockDoc.GetFieldID("SysNum")) Then
    ' This field can be updated.
End If

VB.NET
 
If oStockDoc.IsFieldPublic(eStockDocFld.stdfSysNum) Then
    ' This field can be updated.
End If