Venice
Artcl::SeekByGroupCode
 
Seeks an Article card by its group code.
 
VARIANT_BOOL SeekByGroupCode (
    enum eSeekMode eSeekMode,
    BSTR bsGroupCode,
    BSTR bsNumber
)
 
Key information
This method uses key number 9 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pGroupCodeBSTRAscendingHierarchy
pNumberBSTRAscendingHierarchy
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsGroupCode
[in] The group code of the Article you want to seek.
bsNumber
[in] The number of the Article you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateArtcl
GetDBStatus
GetNext
 
Samples
 
C++
 
// Seek all articles belonging to the group with code = 'GROUP'
CString strGroup = "GROUP";
pArtcl->SeekByGroupCode (smGreaterOrEqual, strGroup, "");
while (pArtcl->GetDBStatus () == 0 && (CString)pArtcl->pGroupCode == strGroup)
{
    // Process record data
    
    pArtcl->GetNext ();
}

C#
 
// Seek all articles belonging to the group with code = 'GROUP'
string strGroup = "GROUP";
oArtcl.SeekByGroupCode (eSeekMode.smGreaterOrEqual, strGroup, "");
while (oArtcl.GetDBStatus () == 0 && oArtcl.pGroupCode.ToString () == strGroup)
{
    // Process record data
    
    oArtcl.GetNext ();
}

VBS
 
' Seek all articles belonging to the group with code = 'GROUP'
Dim strGroup
strGroup = "GROUP"
Call oArtcl.SeekByGroupCode(smGreaterOrEqual, strGroup, "")
While oArtcl.GetDBStatus() = 0 And oArtcl.pGroupCode = strGroup
    ' Process record data
    
    Call oArtcl.GetNext()
Wend

VB.NET
 
' Seek all articles belonging to the group with code = 'GROUP'
Dim strGroup As String
strGroup = "GROUP"
oArtcl.SeekByGroupCode(eSeekMode.smGreaterOrEqual, strGroup, "")
While oArtcl.GetDBStatus() = 0 And oArtcl.pGroupCode = strGroup
    ' Process record data
    
    oArtcl.GetNext()
End While