public method IO2GMessagesTable.findRow
Brief
Finds a row in the IO2GMessagesTable
by MsgID.
Declaration | ||||
|
Parameters | |
id |
The unique identification number of a message. The number is unique within the same database
that stores the account trader. For example, |
row |
[out] The row fetched. |
Details
If the row is not found, the method returns false
.
Example
Find message by MsgID [hide]
O2G2Ptr<IO2GMessagesTable> messagesTable = (IO2GMessagesTable *)tableManager->getTable(Messages); IO2GMessageTableRow *message = NULL; if (messagesTable.findRow(mMsgID.c_str(), message)) { std::cout << "MessageID: " << message->getMsgID() << " From = " << message->getFrom() << " Text = " << message->getText() << std::endl; message->release(); }
Declared in IO2GMessagesTable