Venice
AnAcc::BrowseByType
 
Browses the file for a specific type of Analytical Account card.
 
LONG BrowseByType (
    VARIANT_BOOL bFromCurrPos,
    enum eAnaAccType eAnaAccType
)
 
Parameters
bFromCurrPos
[in] When this parameter is set to true the browse will use the current position of the file and the key that was set by the previous SeekBy-method. If the parameter is false the browse will be positioned at the beginning of the file and the key will be the last one that was manually selected in the browse.
eAnaAccType
[in] A value of the 'eAnaAccType' enumeration.
 
See Also
CreateAnAcc
 
Samples
 
C++
 
// Browse for all analytical accounts of type 'Centre'
long lSysNum = pAnAcc->BrowseByType (VARIANT_FALSE, aatCent);
if (lSysNum)
    // Process record data

C#
 
// Browse for all analytical accounts of type 'Centre'
int iSysNum = oAnAcc.BrowseByType (false, eAnaAccType.aatCent);
if (iSysNum != 0)
    // Process record data

VBS
 
' Browse for all analytical accounts of type 'Centre'
Dim lSysNum
lSysNum = oAnAcc.BrowseByType(False, aatCent)
If lSysNum <> 0 Then
    ' Process record data
End If

VB.NET
 
' Browse for all analytical accounts of type 'Centre'
Dim lSysNum As Long
lSysNum = oAnAcc.BrowseByType(False, eAnaAccType.aatCent)
If lSysNum <> 0 Then
    ' Process record data
End If