![]() |
![]() |
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.
The following code example adds three data items to the documents 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
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.