public method O2GAccountsTable.getRow

Brief

Gets a row from the O2GAccountsTable by its index.

Declaration
C#
O2GAccountTableRow  getRow (int index)

Parameters
index

The index of the row. The index must be between 0 and Count - 1.

Details

If the row is not found, the method returns null.
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 rows from the Offers table [hide]

    O2GResponseReaderFactory readerFactory = mSession.getResponseReaderFactory();
    if (readerFactory != null)
    {
        O2GOffersTableResponseReader reader = readerFactory.createOffersTableReader(response);
        int i;
        for (i = 0; i < reader.Count; i++)
        {
            O2GOfferRow row = reader.getRow(i);
            Console.WriteLine("{0} {1} {2} {3}", row.OfferID, row.Instrument, row.Bid, row.Ask);
        }
    }

Declared in O2GAccountsTable

back