Simon Slavin-3 wrote:
> 
> 
> On 23 May 2011, at 1:50pm, Dev_lex wrote:
> 
>> I would like to do this : 
>> 
>> sqlite3_exec(query_handle.db,"SELECT * FROM DHSS", callback, 0, NULL);
>> 
>> But I need to prepare the statement.. So  I can prepare the statement :
>> "SELECT * FROM DHSS" , but how can I call the callback with sqlite3_step?
> 
> _step() is not a callback, it's a routine you call when you want the next
> row.
> 
> Take a look at this page:
> 
> http://www.sqlite.org/c3ref/stmt.html
> 
> and follow whatever links you like.  If have a specific question about
> callbacks, we can answer it.
> 
> Simon.
> _______________________________________________
> sqlite-users mailing list
> [email protected]
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
> 
> 

Hello,

Well I know that _step is not a callback, but I have a callback to call..
With _exec I can call it without any problem, because I can pass it in the
third argument.. But with the _prepare and _step method, I don't know how to
bind my callback with the SELECT statement.. ?
-- 
View this message in context: 
http://old.nabble.com/Prepare-and-exec-tp31681326p31681456.html
Sent from the SQLite mailing list archive at Nabble.com.

_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to