DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Method: Item for TemplateProperties

Method: Item for TemplateProperties

Returns the TemplateProperty object that is associated with a specific name or a specific index, in the script interface for internal data.

Set oTemplateProperty = Object.Item(NameOrIndex)
ObjectTemplateProperties
Object with this method
NameOrIndexVariant
Specifies the name or the index of the property.
oTemplatePropertyTemplateProperty
Returned object
Note  You can always omit the Item method because this method is always the standard element of the collection.

The following example displays the name of the first custom properties template in the data set (root):

VBScriptPython

 

Dim oMyProp
Set oMyProp = Data.Settings.CustomPropertyTemplate.RootProperties.Item(1)
Call MsgBoxDisp ("Property name: " & oMyProp.Name)
In This Section
Was this information helpful?