"Christopher J. Demers" <
[hidden email]> wrote in
message news:bp1faf$1jvbo4$
[hidden email]...
> The method ADODBRecordset15<<do: raises an error on an empty recordset. I
> think this is inconsistent with the normal expectations of Smalltalk do:.
I
> believe it should simply do nothing if the recordset is empty. I think
the
> problem is the MoveFirst, as this will error if the recordset is empty. I
> have fixed this (code attached bellow) by doing an eof check before the
move
> first. One could raise the question: "What if one wanted to iterate over
a
> recordset twice?". The method recordCount seems to like to return -1,
which
> is not very helpful. Perhaps the message MoveFirst could be wrapped in an
> error trap? Or perhaps there is a better test that some ADO guru knows.
I
> will leave these decisions to the wizards of OA, but whatever the case I
> believe do: should not error on an empty recordset. My partial fix is
> included bellow:
>
Thanks Chris, we'll take a look at this issue for PL3.
Regards
Blair