On Mon, May 23, 2011 at 3:58 PM, Dev_lex <[email protected]> wrote:
> int i =0;
> for(i=0;i<=3;i++)
> {
> sqlite3_step(Stmt);
> callback;
> }
> ...
> I've only one line in my table, ans 4 columns, that's why I've done i=0 to
> 3.
>
The number of columns has NOTHING to do with how many times you need to call
step(): you step through ROWS and each row can have an arbitrary number of
columns. Your loop is essentially correct but you need a different loop
termination condition. In its simplest form it looks like this:
while( SQLITE_ROW == sqlite3_step( Stmt ) ) {
my_callback( Stmt );
}
--
----- stephan beal
http://wanderinghorse.net/home/stephan/
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users