Previous Document Next Document
DataField.Delete

Sub Delete()

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.

The following code example deletes the data field named “Temporary” (assuming 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 2007 Corel Corporation. All rights reserved.