Venice
SDeliv::GetNumDetails
 
Gets the number of details.
 
SHORT GetNumDetails ()
 
Return value
A SHORT containing the number of details of the current document.
 
See Also
CreateSDeliv
Handling invoicing documents using the SDK
PrepareDocument
CancelDocument
 
Samples
 
C++
 
// Get the number of details of the current document
short sNumDets;

pSDeliv->PrepareDocument (paView);

sNumDets = pSDeliv->GetNumDetails ();
    
if (sNumDets != 0)
{
    // Process data
}

pSDeliv->CancelDocument ();

C#
 
// Get the number of details of the current document
short sNumDets;

oSDeliv.PrepareDocument (ePrepareAction.paView);

sNumDets = oSDeliv.GetNumDetails ();
    
if (sNumDets != 0)
{
    // Process data
}

oSDeliv.CancelDocument ();

VBS
 
' Get the number of details of the current document
Dim sNumDets

Call oSDeliv.PrepareDocument(paView)

sNumDets = oSDeliv.GetNumDetails()

If sNumDets <> 0 Then
    ' Process data
End If

Call oSDeliv.CancelDocument()

VB.NET
 
' Get the number of details of the current document
Dim sNumDets As Short

oSDeliv.PrepareDocument(ePrepareAction.paView)

sNumDets = oSDeliv.GetNumDetails()
    
If sNumDets <> 0 Then
    ' Process data
End If

oSDeliv.CancelDocument()