WTA - How To Convert IZResultSet to TDataSet?
Posted: 02.02.2012, 12:25
Hi there...
is there any one knows how to convert object from class IZResultSet to TDataSet descendant? Iwant to display it with TDBGrid.
I'm using Lazarus, ZEOS 6.6.6, and MySQL5.5.
In my database I have stored procedure that returns multiple resultsets. I found an example used of ZEOS for calling this stored procedure. It uses IZResultSet for storing those resultsets. But in that example, we just can calling each field and put them into a TLabel or TEdit. Now I want to display them in TDBGrid.
A member in other forum told me that it could be done (but not tell me how) . What i was thinking is copying each row and each field into TDataset descendant using loop (FOR or WHILE). But this is silly
*sorry for my bad English
is there any one knows how to convert object from class IZResultSet to TDataSet descendant? Iwant to display it with TDBGrid.
I'm using Lazarus, ZEOS 6.6.6, and MySQL5.5.
In my database I have stored procedure that returns multiple resultsets. I found an example used of ZEOS for calling this stored procedure. It uses IZResultSet for storing those resultsets. But in that example, we just can calling each field and put them into a TLabel or TEdit. Now I want to display them in TDBGrid.
A member in other forum told me that it could be done (but not tell me how) . What i was thinking is copying each row and each field into TDataset descendant using loop (FOR or WHILE). But this is silly
*sorry for my bad English