Method: Item for TemplateProperties
- Updated2024-09-12
- 1 minute(s) read
Internal Data > Methods > 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)
Object | TemplateProperties Object with this method |
NameOrIndex | Variant Specifies the name or the index of the property. |
oTemplateProperty | TemplateProperty 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):
VBScript | Python |
Dim oMyProp Set oMyProp = Data.Settings.CustomPropertyTemplate.RootProperties.Item(1) Call MsgBoxDisp ("Property name: " & oMyProp.Name)