Previous Document Next Document
Properties.ItemByIndex

Property ItemByIndex(Index As Long) As Variant

Member of Properties

The ItemByIndex property returns the data item specified by the specified index.

The ItemByIndex property returns a read-only value.

Parameters
Description
Index
Specifies the data item by its index number

The following code example adds three data items to the document’s property collection and displays the second data item.

Sub Test() 
 Dim p As Properties 
 Set p = ActiveDocument.Properties 
 p.Item("Item", 1) = "Draw" 
 p.Item("Item", 2) = "PhotoPaint" 
 p.Item("Item", 3) = "R.A.V.E" 
 MsgBox p.ItemByIndex(2) 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.