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

PropertiesAddMetadata

Adds a new metadata entry to the current object properties. This function will return an error if metadata with the specified name already exists.

Syntax

PropertiesAddMetadata (Name, Value)

Name:

The name of the new metadata entry to be added to the properties of the current object

Value:

The value of the new metadata to be added to the current object properties.

Return Value

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

Example

Adding a new element and setting its properties:

GraphicsBuilder.PropertiesAddMetadata("MyName","MyValue")

Related Functions

PropertiesMetadataValue, PropertiesMetadataName, PropertiesSelectNextMetadata, PropertiesSelectFirstMetadata, PropertiesDeleteMetadata, PropertiesSelectMetadataByName