Previous Document Next Document

Object Model Reference : Classes : D : Document : Properties : Document.DataFields


Document.DataFields

Property DataFields As DataFields

Description

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.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.