Accessing Data From a Thread.
Posted: Mon 08 Jun 2009 16:38
I have created a query, and a thread.
On the threads creation it is passed the query to execute.
using the query I can obtain the total number of records retrieved so far using Data.RecordCount
Self.RecordCount returns 0 on account the of query not being Active. It seems the Active property isn't set until the query has finished executing.
What I would like to do is to be able to access the data without having to wait for the query to finish.
I can see the that the data contains records. I can also see if I call CreateFieldDefs manually it succesfully creates the field defintions.
I can even call CreateFields and I get a list of fields
Unfortunately Query.Fields[x].Value is null until execution has finished.
Is it possible to obtain data as it is retrieved and how do I go about it?
On the threads creation it is passed the query to execute.
using the query I can obtain the total number of records retrieved so far using Data.RecordCount
Self.RecordCount returns 0 on account the of query not being Active. It seems the Active property isn't set until the query has finished executing.
What I would like to do is to be able to access the data without having to wait for the query to finish.
I can see the that the data contains records. I can also see if I call CreateFieldDefs manually it succesfully creates the field defintions.
I can even call CreateFields and I get a list of fields
Unfortunately Query.Fields[x].Value is null until execution has finished.
Is it possible to obtain data as it is retrieved and how do I go about it?