public method O2GOrdersTable.getNextRow

Brief

Gets the next row from the O2GOrdersTable.

Declaration
C#
bool  getNextRow (O2GTableIterator iterator, out O2GOrderTableRow row)

Parameters
iterator

The table iterator.

row

[out] The row fetched.

Details

If the row is not found, the method returns false.
Note: The returned row contains the current values of fields. The values are not automatically updated. To monitor changes, use IO2GTableListener.onChanged. The row interface is thread-safe. One can use the returned row in different threads without synchronization.

Example

Get the next row from the Orders table [hide]

    O2GOrdersTable orders = (O2GOrdersTable)mTblMgr.getTable(O2GTableType.Orders);
    O2GTableIterator iterator = new O2GTableIterator();
    O2GOrderTableRow order = null;
    while(orders.getNextRow(iterator, out order))
    {
        Console.WriteLine("OrderID={0}, Amount={1}, BuySell={2}", order.OrderID, order.Amount, order.BuySell);
    }

Declared in O2GOrdersTable

back