Venice
SOffer::Delete
 
Deletes a Sales Offer.
 
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
CreateSOffer
SeekBySysNum
 
Samples
 
C++
 
// Delete the last inserted record
if (pSOffer->SeekBySysNum (smLast, 0))
    pSOffer->Delete (dmFullReport);

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

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

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