Board index » off-topic » First?

First?


2007-03-26 07:50:26 PM
off-topic11
Hi group.
Do I need to call TDataSet.First just after TDataSet.Open?
Like
with MyQuery do begin
SQL.Text := ...
Open;
First; <- necessary?
while not Eof do ...
...
end;
Similarly with TTables. Isn't a table at its first record just after it is
opened?
with MyTable do begin
Open;
First; <- Necessary?
while not Eof...
...
Thanks
Jacob.
 
 

Re:First?

You mean "yes" ?? :-)
Quote
>Similarly with TTables. Isn't a table at its first record just after
>it is opened?

No.


--
Bill Todd (TeamB)
 

Re:First?

Jacob Havkrog wrote:
Quote
Do I need to call TDataSet.First just after TDataSet.Open?
No.
Quote

Like

with MyQuery do begin
SQL.Text := ...
Open;
First; <- necessary?
while not Eof do ...
...
end;

Similarly with TTables. Isn't a table at its first record just after
it is opened?
No.
--
Bill Todd (TeamB)
 

{smallsort}

Re:First?

Jacob Havkrog wrote:
Quote
You mean "yes" ?? :-)
Yes.
--
Bill Todd (TeamB)