Hi,
In Delphi6 IDE with TUNIQuery connected to SQLite provider,
if i set QueryRecordCount option to true, when i try to use RecordCount property it raise this exception:
...EAssertionFailes with message '23 (D:\Projects\Delphi\Dac\Common\Source\CRAccess.pas, line 2822)'. Process Stopped.....
this is example code:
with UNIQuery1 do
begin
..
Options.QueryRecordCount=true;
..
if (RecordCount>0) <<< ERROR
then..
end;
thanks for help
Raise Exceptionwhen using QueryRecordCount=true
-
- Posts: 7
- Joined: Tue 24 Jul 2007 16:04
-
- Posts: 7
- Joined: Tue 24 Jul 2007 16:04
open is present
Command open is present before testing recordcount member, see code:
with UNIQuery1 do
begin
..
Options.QueryRecordCount=true;
Open;
if (RecordCount>0) <<< ERROR
then..
end;
with UNIQuery1 do
begin
..
Options.QueryRecordCount=true;
Open;
if (RecordCount>0) <<< ERROR
then..
end;