ItemByName
This read-only property returns the field from the collection by the specified field name.
Syntax
ItemByName (Name as String) as ISCBCdrField
Parameter | Description |
---|---|
Name | Name of the item to get from the collection. |
Sample Code
Private Sub Document_FocusChanged(pWorkdoc as SCBCdrPROJLib.SCBCdrWorkdoc, ByVal Reason as SCBCdrPROJLib.CdrFocusChangeReason, ByVal OldFieldIndex as Long, pNewFieldIndex as Long)
If pWorkdoc.Fields.ItemByName("InteractiveTableExtractionAllowed").Text = "No" Then
Project.AllClasses.ItemByName(pWorkdoc.DocClassName).Fields.ItemByName("LineItems").AllowInteractiveExtraction = False
Else
Project.AllClasses.ItemByName(pWorkdoc.DocClassName).Fields.ItemByName("LineItems").AllowInteractiveExtraction = True
End If
End Sub