CurStock::GetStockArt (Interface: CurStock)
 
Gets the current Stock data for an article.
 
VARIANT_BOOL GetStockArt (
    BSTR bsArtNum,
    VARIANT_BOOL bUseStockArticle
)
 
Parameters
bsArtNum
[in] The article number of which you want to know the current stock data.
bUseStockArticle
[in] Should the current stock data of the stock article of the given article be used to fetch the current stock data?
 
Return value
True if the current stock data was retrieved successfully, otherwise false.
 
See Also
CreateCurStock
 
Samples
 
C++
 
// Get the current stock data for the article with number 'Art_001', using its stock article
if (pCurStock->GetStockArt ("Art_001", VARIANT_TRUE))
    // Process data

C#
 
// Get the current stock data for the article with number 'Art_001', using its stock article
if (oCurStock.GetStockArt ("Art_001", true))
    // Process data

VBS
 
' Get the current stock data for the article with number 'Art_001', using its stock article
If oCurStock.GetStockArt("Art_001", True) Then
    ' Process data
End If

VB.NET
 
' Get the current stock data for the article with number 'Art_001', using its stock article
If oCurStock.GetStockArt("Art_001", True) Then
    ' Process data
End If