Wish: ClientDataset and Gridview

Harris

Expert
Licensed User
Longtime User
A ClientDataSet in Every Database Application

The above link / article explains the workings of a CLientDataSet.



I am accustomed to working with tables in Delphi and such.

After retreiving a dataset using SetRange(begin, end ), I would load the results into a TTable and use the following table methods.


If not Table.active then
Table.open
end if

Table.first;
While Not Table.eof() do
Begin
Table.edit;
// process fields however...
Table.next;
end;
If table.state in [dsEdit, dsInsert] then
Table.post;
end if;
Table.close;

I grid would be most useful for displaying feilds from a recordset. I looked at the table example and see how it functions (to some degree)


I do not know how to iterate records using SQL commands in a fashion similar to that above...

Thanks

MHW
 

Harris

Expert
Licensed User
Longtime User
Ask and ye shall provide! Thanks - I will try these out.. This is why I love this stuff...
 
Top