Object Model Reference : Classes : D : Document : Properties : Document.DataFields |
Property DataFields As DataFields
Member of Document
The DataFields property returns the DataFields collection, which represents a list of all object data fields defined in the document.
By default, CorelDRAW creates four data fields: Name, Cost, Comments, and CDRStaticID. The Cost and Comments fields are for your convenience and can be edited or deleted as required. The Name and CDRStaticID fields are used by CorelDRAW to identify objects and cannot be edited or deleted.
The DataFields property returns a read-only value.
The following VBA example counts the number of data fields defined in the active document.
Sub Test() |
Dim n As Long |
n = ActiveDocument.DataFields.Count |
MsgBox "There are " & n & " data fields defined" |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.