Returns the value to which an account’s EnableCustom1Aggr attribute has been set.
<HsvAccounts>.IsCustom1AggregationEnabled lItemID, pbIsEnabled
The following example tests whether the EnableCustom1Aggr attribute of the account specified in the comboAcct combo box is enabled. If this attribute is enabled, any code placed within the If structure would be executed.
Dim cAccounts As HsvAccounts, cTreeInfo As IHsvTreeInfo
Dim lAcctID As Long, bIsEnabled As Boolean
Dim sAcctLabel As String
Set cAccounts = m_cMetadata.Accounts
Set cTreeInfo = m_cMetadata.Accounts
sAcctLabel = comboAcct.Text
lAcctID = cTreeInfo.GetItemID(sAcctLabel)
cAccounts.IsCustom1AggregationEnabled lAcctID, bIsEnabled
If bIsEnabled = True Then
…
End If