Venice
Custm::BrowseDocuments
 
Browse the sales documents of this Customer.
 
LONG BrowseDocuments (
    LONG lCstNum
)
 
Parameters
lCstNum
[in] The number of the Customer of which you want to browse the sales documents.
 
Return value
A LONG containing the system number of the selected sales document, 0 if no record was selected.
 
Remarks
The option 'Accounting' is required to use this method.
This method can only be used if user interface is allowed (parameter bWithUserInterface is set to true in the Logon method), because a record can only be selected using the browse dialog.
Only the sales documents (Sales interface) of the last financial year are browsed.
If you supply 0 for lCstNum all sales documents are shown in the browse dialog.
 
See Also
CreateCustm
 
Samples
 
C++
 
// Browse all sales document for the customer with number 25
long lDocSysNum = pCustm->BrowseDocuments (25);

C#
 
// Browse all sales document for the customer with number 25
int iDocSysNum = oCustm.BrowseDocuments (25);

VBS
 
' Browse all sales document for the customer with number 25
Dim lDocSysNum
lDocSysNum = oCustm.BrowseDocuments(25)

VB.NET
 
' Browse all sales document for the customer with number 25
Dim lDocSysNum As Long
lDocSysNum = oCustm.BrowseDocuments(25)