SInvce::Delete (Interface: SInvce)
 
Deletes a Sales Invoice.
 
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
CreateSInvce
SeekBySysNum
 
Samples
 
C++
 
// Delete the last inserted record
if (pSInvce->SeekBySysNum (smLast, 0))
    pSInvce->Delete (dmFullReport);

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

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

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