![]() |
![]() |
Properties.DeleteByIndex
Sub DeleteByIndex(Index As Long)
Member of Properties
The DeleteByIndex method deletes the data item specified by its index number.
The following code example adds three data items to the documents property collection and then removes the second data item:
Sub Test() Dim p As Properties Set p = ActiveDocument.Properties p.Item("Application", 1) = "CorelDRAW" p.Item("Application", 2) = "Corel PHOTO-PAINT" p.Item("Application", 3) = "R.A.V.E" p.DeleteByIndex (2) ' Remove the second data item - "Corel PHOTO- PAINT." End Sub
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.