IsCalculated

Returns a Boolean that indicates whether an account’s data is calculated by Financial Management or is manually entered. In other words, this method returns the value to which an account’s IsCalculated attribute has been set.

Syntax

<HsvAccounts>.IsCalculated lItemID, pbIsCalculated

Argument

Description

lItemID

Long (ByVal). The member ID of the account.

pbIsCalculated

Boolean. Returns TRUE if the account’s data is calculated, FALSE if the data is manually entered.

Example

The following example tests whether the account specified in a combo box control is a calculated account. If so, any code placed in the If structure would be executed.

Dim cAccounts As HsvAccounts, cTreeInfo As IHsvTreeInfo
Dim lAccount as Long, sAcctLabel As String, bIsCalc As Boolean
Set cAccounts = m_cMetadata.Accounts
Set cTreeInfo = m_cMetadata.Accounts
sAcctLabel = comboAcct.Text
lAccount = cTreeInfo.GetItemID(sAcctLabel)
cAccounts.IsCalculated lAccount, bIsCalc
If bIsCalc = True Then
  …
End If