Previous Document Next Document
Properties.DeleteByIndex

Sub DeleteByIndex(Index As Long)

Member of Properties

The DeleteByIndex method deletes the data item specified by its index number.

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 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 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.