Previous Document Next Document

Object Model Reference : Classes : D : DataItem : Methods : DataItem.Clear


DataItem.Clear

Sub Clear()

Description

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.

VBA example

The following VBA 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 2013 Corel Corporation. All rights reserved.