Venice
SInvce::SeekByTsmNum
 
Seeks a Sales Invoice by its TSM number.
 
VARIANT_BOOL SeekByTsmNum (
    enum eSeekMode eSeekMode,
    BSTR bsTsmNumber
)
 
Key information
This method uses key number 9 (See SwapKey).
This key allows duplicates.
This is a null key, only the records where pTsmNumber is not blank are in the index.
 
Key segment information
Segment NameTypeOrderCollation
pTsmNumberBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsTsmNumber
[in] The TSM number of the Sales Invoice you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateSInvce
 
Samples
 
C++
 
// Seek the document with (unformatted) TSM number = '001500001532'
if (pSInvce->SeekByTsmNum (smEqual, "001500001532"))
    // Process record data

C#
 
// Seek the document with (unformatted) TSM number = '001500001532'
if (oSInvce.SeekByTsmNum (eSeekMode.smEqual, "001500001532"))
    // Process record data

VBS
 
' Seek the document with (unformatted) TSM number = '001500001532'
If oSInvce.SeekByTsmNum(smEqual, "001500001532") Then
    ' Process record data
End If

VB.NET
 
' Seek the document with (unformatted) TSM number = '001500001532'
If oSInvce.SeekByTsmNum(eSeekMode.smEqual, "001500001532") Then
    ' Process record data
End If