Previous Document Next Document
DataFields.Item

Property Item(IndexOrName As Variant) As DataField

Member of DataFields

The Item property returns the data item (DataField object) representing a data field.

This property is the default property of the collection, so the reference to Item can be omitted when referencing data fields in the collection.

The Item property returns a read-only value.

Parameters
Description
IndexOrName
Specifies the item by its name or index number:
Index — Acts as a preset placeholder for each object in the DataFields collection, uniquely identifying each member of the collection
Name — Represents the unique string value that identifies each color profile

The following code 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 2007 Corel Corporation. All rights reserved.