Technical Reference > Graphics Builder Automation Interface > Metadata Functions > PropertiesDeleteMetadata

PropertiesDeleteMetadata

Deletes the selected metadata from the properties of the current object. After an item has been deleted, a call to PropertiesSelectNextMetadata will select the item immediately following the deleted item.

Syntax

PropertiesDeleteMetadata()

Return Value

0 (zero) if successful, otherwise an error is returned.

Example

delete any metadata starting with “a”:

Dim name As String
On Error Resume Next
Err.Clear()
GraphicsBuilder.PropertiesSelectFirstMetadata()
While (Err.Number = 0)
	name = GraphicsBuilder.PropertiesMetadataName
	If (name.ToLower().StartsWith("a")) Then
		GraphicsBuilder.PropertiesDeleteMetadata()
	End If
	GraphicsBuilder.PropertiesSelectNextMetadata()
End While

Related Functions

PropertiesMetadataValue, PropertiesMetadataName, PropertiesSelectNextMetadata, PropertiesSelectFirstMetadata, PropertiesAddMetadata, PropertiesSelectMetadataByName