Returns the number that identifies an account’s type.
HsvMetadata.GetCellLevelAccountType returns a cell’s account type, which in some cases can differ from the account type of the cell’s account. For details, see GetCellLevelAccountType. |
<HsvAccounts>.GetAccountType lItemID, psAccountType
Integer. Returns the account type of the account. For a list of constants that represent the valid return values, see Account Type Constants. |
The following function indicates whether a given account has an account type of CurrencyRate.
Function isCurrencyRateType(sMem As String) As Boolean Dim cAccounts As HsvAccounts, cTreeInfo As IHsvTreeInfo Dim lAccount As Long, iAcctType As Integer 'g_cMetadata is an HsvMetadata object reference Set cAccounts = g_cMetadata.Accounts Set cTreeInfo = g_cMetadata.Accounts lAccount = cTreeInfo.GetItemID(sMem) cAccounts.GetAccountType lAccount, iAcctType If iAcctType = ACCOUNTTYPE_CURRENCYRATE Then isCurrencyRateType = True Else isCurrencyRateType = False End If End Function