ArtGrp::SeekByCode
 
Seeks an Article Group card by its code.
 
VARIANT_BOOL SeekByCode (
    enum eSeekMode eSeekMode,
    BSTR bsCode
)
 
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.
 
Remarks
This method seeks the file using the key 'GRP_COD' (key number 1).
 
See Also
CreateArtGrp
The UNIT4 C-Logic Description File 'ArtGp.cld' in the Cld-directory in the system path of your Venice installation.
 
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