PInvce::SeekByItrStatus (Interface: PInvce)
 
Seeks a Purchase Invoice by its Intrastat status.
 
VARIANT_BOOL SeekByItrStatus (
    enum eSeekMode eSeekMode
)
 
Key information
This method uses key number 8 (See SwapKey).
This key allows duplicates.
This is a null key, only the records where pIntrastat is true are in the index.
 
Key segment information
Segment NameTypeOrderCollation
pIntrastatVARIANT_BOOLAscending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreatePInvce
GetDBStatus
GetNext
 
Samples
 
C++
 
// Process all records that still need Intrastat data
pPInvce->SeekByItrStatus (smFirst);
while (pPInvce->GetDBStatus () == 0)
{
    // Process record data
    
    pPInvce->GetNext ();
}

C#
 
// Process all records that still need Intrastat data
oPInvce.SeekByItrStatus (eSeekMode.smFirst);
while (oPInvce.GetDBStatus () == 0)
{
    // Process record data
    
    oPInvce.GetNext ();
}

VBS
 
' Process all records that still need Intrastat data
Call oPInvce.SeekByItrStatus(smFirst)
While oPInvce.GetDBStatus() = 0
    ' Process record data
    
    Call oPInvce.GetNext()
Wend

VB.NET
 
' Process all records that still need Intrastat data
oPInvce.SeekByItrStatus(eSeekMode.smFirst)
While oPInvce.GetDBStatus() = 0
    ' Process record data
    
    oPInvce.GetNext()
End While