Previous Document Next Document
DataItems.Clear

Sub Clear()

Member of DataItems

The Clear method clears the values of all data items associated with the given shape. A data item stores information about a shape object.

The Name and CDRStaticID fields are used by CorelDRAW to identify objects and cannot be erased.

The following code example clears all value from all data fields for the currently selected shape.

Sub Test() 
 ActiveShape.ObjectData.Clear 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.