Previous Document Next Document

Object Model Reference : Classes : D : DataItems : Properties : DataItems.Count


DataItems.Count

Property Count As Long

Description

Member of DataItems

The Count property returns the number of fields available. Empty, non-document-default fields are not listed in this collection.

 
See DataFields for the full list of data fields available in the document.

The Count property returns a read-only value.

VBA example

The following VBA example counts the number of data fields in the active shape.

Sub Test()
 Dim n As Long
 CountFields = ActiveSelection.Shapes(1).ObjectData.Count
 MsgBox CountFields
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.