Venice
ArtGrp::SeekByCode
 
Seeks an Article Group card by its code.
 
VARIANT_BOOL SeekByCode (
    enum eSeekMode eSeekMode,
    BSTR bsCode
)
 
Key information
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pCodeBSTRAscendingHierarchy
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsCode
[in] The code of the article group you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateArtGrp
 
Samples
 
C++
 
// Seek the article group with code = 'SOFTWARE'
if (pArtGrp->SeekByCode (smEqual, "SOFTWARE"))
    // Process record data

C#
 
// Seek the article group with code = 'SOFTWARE'
if (oArtGrp.SeekByCode (eSeekMode.smEqual, "SOFTWARE"))
    // Process record data

VBS
 
' Seek the article group with code = 'SOFTWARE'
If oArtGrp.SeekByCode(smEqual, "SOFTWARE") Then
    ' Process record data
End If

VB.NET
 
' Seek the article group with code = 'SOFTWARE'
If oArtGrp.SeekByCode(eSeekMode.smEqual, "SOFTWARE") Then
    ' Process record data
End If