Previous Document Next Document

Object Model Reference : Classes : D : DataField : Methods : DataField.Delete


DataField.Delete

Sub Delete()

Description

Member of DataField

The Delete method deletes a specified data field. You can delete any data field except for Name and CDRStaticID. When you delete a field, you also delete all data entered for that field in the active document.

VBA example

The following VBA example deletes the data field named “Temporary” (assuming that this field has previously been created).

Sub Test()
 ActiveDocument.DataFields.Add ("Temporary")
 ActiveDocument.DataFields("Temporary").Delete
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.