Set (Properties)


Description

Set a property value (or remove the property from the Properties collection).

Syntax

someProperties.Set(indexPropertyType, aVariant)

Parameter

Description

someProperties

a Properties collection.

indexPropertyType

An integer, or a string, or a PropertyType object specifying which property is being set  in the Properties collection. The zero-based integer is a index into the PropertyTypes collection. Likewise, the PropertyType object must be in the PropertyTypes collection and the string must be the name of a PropertyType object in the PropertyTypes collection.

aVariant

A variant value. It may be a string, double, array of string, array of doubles, or the Nothing object. If Nothing is specified and if the property value is currently set, it will be removed. If Nothing is specified and if the property value not currently set, the collection stays the same.

Return Value

None.

Example

See: Properties: an Overview

Applies To

Properties