SDeliv::Delete (Interface: SDeliv)
 
Deletes a Sales Delivery.
 
void Delete (
    enum eDeleteMode eDeleteMode
)
 
Parameters
eDeleteMode
[in] A value of the 'eDeleteMode' enumeration.
 
Remarks
After deleting a record, no further actions can be executed on the record, although the methods GetNext and GetPrevious are still valid.
 
See Also
CreateSDeliv
SeekBySysNum
 
Samples
 
C++
 
// Delete the last inserted record
if (pSDeliv->SeekBySysNum (smLast, 0))
    pSDeliv->Delete (dmFullReport);

C#
 
// Delete the last inserted record
if (oSDeliv.SeekBySysNum (eSeekMode.smLast, 0))
    oSDeliv.Delete (eDeleteMode.dmFullReport);

VBS
 
' Delete the last inserted record
If oSDeliv.SeekBySysNum(smLast, 0) Then
    Call oSDeliv.Delete(dmFullReport)
End If

VB.NET
 
' Delete the last inserted record
If oSDeliv.SeekBySysNum(eSeekMode.smLast, 0) Then
    oSDeliv.Delete(eDeleteMode.dmFullReport)
End If