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

pPurch->PrepareDocument (paView);

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

pPurch->CancelDocument ();

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

oPurch.PrepareDocument (ePrepareAction.paView);

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

oPurch.CancelDocument ();

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

Call oPurch.PrepareDocument(paView)

sNumDets = oPurch.GetNumDetails()

If sNumDets <> 0 Then
    ' Process data
End If

Call oPurch.CancelDocument()

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

oPurch.PrepareDocument(ePrepareAction.paView)

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

oPurch.CancelDocument()