Previous Document Next Document
DataItem.Clear

Sub Clear()

Member of DataItem

The Clear method removes the data by assigning an empty value to the field.

The Name and CDRStaticID fields are read-only and cannot be modified.

The following code example clears all data assigned to the currently selected shape.

Sub Test() 
 Dim di As DataItem 
 For Each di In ActiveShape.ObjectData 
  di.Clear 
 Next di 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.