ISLetterTemplateCategory.ParentID

Description

ID of the parent category the letter template is associated with.

Syntax

object.ParentID

Part Attribute Type Description
object Required
The object always implements the ISLetterTemplateCategory interface
Restriction: This property is readonly.

Return Value

int

Example

Display some information about the category the letter template is associated with, including its parent ID.

Dim aLetTempCategories
Dim aLetTempCategory
Dim i
Dim aMessage

Set aLetTempCategories = Profile.LoadLetterTemplateCategories
aMessage = vbNewLine & "Letter Template Categories Count = " &_
  aLetTempCategories.Count & vbNewLine
for i = 0 to aLetTempCategories.Count -1 
  set aLetTempCategory = aLetTempCategories.Item(i)
  aMessage = aMessage & vbNewLine &_
    "Category Name: " & aLetTempCategory.Name & vbNewLine &_
    "Category ID: " & aLetTempCategory.ID & vbNewLine &_
    "Category Parent ID: " & aLetTempCategory.ParentID & vbNewLine &_
    "Category Path : " & Replace(aLetTempCategory.Path, chr(10), "\") & vbNewLine
next 

Profile.MsgBox (aMessage)  
Note:

In Profile Client v8 on User Interface Parent ID cannot be found. Parent Category can be found in Maintain > Templates > Documents > Categories.

Version information

Added in v7.8.0