Swissmade Well-Known Member Licensed User Longtime User Feb 27, 2014 #1 Hi, Search the forum I can not find what I need. I like to use ExeCQueryAsync. Now I miss the option to also make use of a Taskid. This is not possible here or I miss something. SQLRespond_querycomplete(Success As Boolean, RS As ResultSet) Something like this Code: Copy SQLDB.ExecQueryAsync("SQLRespond", strMYSQL, Null, Task) Sub SQLRespond_querycomplete(Success As Boolean, RS As ResultSet, Taskid as Int) Select TaskId Case ..... do something End Select End Sub Any help here will be nice. Thanks
Hi, Search the forum I can not find what I need. I like to use ExeCQueryAsync. Now I miss the option to also make use of a Taskid. This is not possible here or I miss something. SQLRespond_querycomplete(Success As Boolean, RS As ResultSet) Something like this Code: Copy SQLDB.ExecQueryAsync("SQLRespond", strMYSQL, Null, Task) Sub SQLRespond_querycomplete(Success As Boolean, RS As ResultSet, Taskid as Int) Select TaskId Case ..... do something End Select End Sub Any help here will be nice. Thanks
Erel B4X founder Staff member Licensed User Longtime User Feb 28, 2014 #2 Currently there is no task id. As a workaround you can add a "dummy" column to the query and use it as the query id. Something like: Code: Copy "SELECT 5 as QueryID, Col1, Col2 FROM table1" Upvote 0
Currently there is no task id. As a workaround you can add a "dummy" column to the query and use it as the query id. Something like: Code: Copy "SELECT 5 as QueryID, Col1, Col2 FROM table1"
Swissmade Well-Known Member Licensed User Longtime User Feb 28, 2014 #3 Stupid off me have not think off this. Many thanks Erel Upvote 0