1 #include "../include/messagelist.h"
\r
3 void MessageList::LoadRange(const long lowmessageid, const long highmessageid, const long boardid)
\r
7 sql="SELECT tblMessage.MessageID FROM tblMessage INNER JOIN tblMessageBoard ON tblMessage.MessageID=tblMessageBoard.MessageID WHERE tblMessage.MessageID>=? AND tblMessage.MessageID<=?";
\r
10 sql+=" AND tblMessageBoard.BoardID=?";
\r
12 sql+=" ORDER BY tblMessage.MessageID;";
\r
14 SQLite3DB::Statement st=m_db->Prepare(sql);
\r
15 st.Bind(0,lowmessageid);
\r
16 st.Bind(1,highmessageid);
\r
23 // clear existing messages from the list
\r
26 while(st.RowReturned())
\r
29 st.ResultInt(0,result);
\r
30 push_back(Message(result));
\r