CurStock::GetNextStockData (Interface: CurStock)
 
Gets the next item data of the stock list (initialized with GetFirstStockData).
 
VARIANT_BOOL GetNextStockData (
    VARIANT* pvWarehouse,
    VARIANT* pvLocation,
    VARIANT* pvSerialNumber,
    VARIANT* pvStock
)
 
Parameters
pvWarehouse
[out] Returns a VARIANT, subtype BSTR, containing the warehouse.
pvLocation
[out] Returns a VARIANT, subtype BSTR, containing the location.
pvSerialNumber
[out] Returns a VARIANT, subtype BSTR, containing the serial number.
pvStock
[out] Returns a VARIANT, subtype DOUBLE, containing the current stock.
 
Return value
True if the list of stock data contains a following item, otherwise False.
 
See Also
CreateCurStock
GetFirstStockData
 
Samples
 
C++
 
// Get a list of all stock data for the article with number 'Art_001' (in all warehouses, on all locations and for all serial numbers), navigating the list in order of serial number and location.
VARIANT    vWarehouse, vLocation, vSerialNumber, vStock;
if (pCurStock->GetFirstStockData ("Art_001", sdoBySerialNumber_Location, &vWarehouse, &vLocation, &vSerialNumber, &vStock))
{
    // Process data of the first item
    
    while (pCurStock->GetNextStockData (&vWarehouse, &vLocation, &vSerialNumber, &vStock))
    {
        // Process data of this item
    }
}

C#
 
// Get a list of all stock data for the article with number 'Art_001' (in all warehouses, on all locations and for all serial numbers), navigating the list in order of serial number and location.
object oWarehouse = null, oLocation = null, oSerialNumber = null, oStock;
if (oCurStock.GetFirstStockData ("Art_001", eStockDataOrder.sdoBySerialNumber_Location, ref oWarehouse, ref oLocation, ref oSerialNumber, out oStock))
{
    // Process data of the first item
    
    while (oCurStock.GetNextStockData (out oWarehouse, out oLocation, out oSerialNumber, out oStock))
    {
        // Process data of this item
    }
}

VBS
 
' Get a list of all stock data for the article with number 'Art_001' (in all warehouses, on all locations and for all serial numbers), navigating the list in order of serial number and location.
Dim oWarehouse, oLocation, oSerialNumber, oStock
If oCurStock.GetFirstStockData("Art_001", sdoBySerialNumber_Location, oWarehouse, oLocation, oSerialNumber, oStock) Then
    ' Process data of the first item

    While oCurStock.GetNextStockData(oWarehouse, oLocation, oSerialNumber, oStock)
        ' Process data of this item
    Wend
End If

VB.NET
 
' Get a list of all stock data for the article with number 'Art_001' (in all warehouses, on all locations and for all serial numbers), navigating the list in order of serial number and location.
Dim oWarehouse, oLocation, oSerialNumber, oStock As Object
If oCurStock.GetFirstStockData("Art_001", eStockDataOrder.sdoBySerialNumber_Location, oWarehouse, oLocation, oSerialNumber, oStock) Then
    ' Process data of the first item

    While oCurStock.GetNextStockData(oWarehouse, oLocation, oSerialNumber, oStock)
        ' Process data of this item
    End While
End If