Accnt::SeekByVatGroup (Interface: Accnt)
 
Seeks an Account card by its VAT group.
 
VARIANT_BOOL SeekByVatGroup (
    enum eSeekMode eSeekMode,
    BYTE byVatGroup
)
 
Key information
This method uses key number 9 (See SwapKey).
This key allows duplicates.
 
Key segment information
Segment NameTypeOrderCollation
pVatGroupBYTEAscending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
byVatGroup
[in] The VAT group of the General Account you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateAccnt
GetDBStatus
GetNext
 
Samples
 
C++
 
// Seek all general accounts belonging to VAT group 50
BYTE byVatGroup = 50;
pAccnt->SeekByVatGroup (smEqual, byVatGroup);
while (pAccnt->GetDBStatus () == 0 && (BYTE)pAccnt->pVatGroup == byVatGroup)
{
    // Process record data
    
    pAccnt->GetNext ();
}

C#
 
// Seek all general accounts belonging to VAT group 50
byte byVatGroup = 50;
oAccnt.SeekByVatGroup (eSeekMode.smEqual, byVatGroup);
while (oAccnt.GetDBStatus () == 0 && (byte)oAccnt.pVatGroup == byVatGroup)
{
    // Process record data
    
    oAccnt.GetNext ();
}

VBS
 
' Seek all general accounts belonging to VAT group 50
Dim byVatGroup
byVatGroup = 50
Call oAccnt.SeekByVatGroup(smEqual, byVatGroup)
While oAccnt.GetDBStatus() = 0 And oAccnt.pVatGroup = byVatGroup
    ' Process record data
    
    Call oAccnt.GetNext()
Wend

VB.NET
 
' Seek all general accounts belonging to VAT group 50
Dim byVatGroup As Byte
byVatGroup = 50
oAccnt.SeekByVatGroup(eSeekMode.smEqual, byVatGroup)
While oAccnt.GetDBStatus() = 0 And oAccnt.pVatGroup = byVatGroup
    ' Process record data
    
    oAccnt.GetNext()
End While