Previous Document Next Document

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


DataFields.Item

Property Item(IndexOrName As Variant) As DataField

Description

Member of DataFields

The Item property returns the data item (DataField object) representing a data field. It is the default property of the DataFields class.

The Item property returns a read-only value.

Parameter
Description
IndexOrName
Specifies the data field by its index number or name:
 
Index — Specifies the preset placeholder that uniquely identifies each member of the DataFields collection
 
Name — Specifies the string that uniquely identifies each data field

VBA example

The following VBA example shows the format string used to format the data of the Cost field.

Sub Test()
 MsgBox ActiveDocument.DataFields.Item("Cost").Format
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.