Developer Documentation Library > Interviewer - Server > Reference > Log, project, and property objects > Properties > Properties.CreateProperty
 
Properties.CreateProperty
Creates a Property object and returns it.
Syntax
Set <my_property> = <my_properties>.CreateProperty
Parameters
<my_property>
An object of type Property returned by the method.
<myProperties>
An object of type Properties.
Remarks
Always use this method to create a new Property object, rather than the generic VBScript CreateObject or New commands. (You cannot control the process in which the object is created using the generic VBScript commands, and this can make the object unusable by Sample Management.)
You must set the new Property object’s Name and Value properties manually and add them to the Properties collection using the Properties.Add method. (CreateProperty does not add the Property to the Properties collection automatically.)
Examples
Set myProperty = myProperties.CreateProperty
myProperty.Name = "Test"
myProperty.Value = "Testing"
myProperties.Add myProperty
See also
Properties