problem with property option.queryreccount
problem with property option.queryreccount
In the new version 5.55.0.19 for delphi 6, the property queryreccount don't work.
Please do the following:
Create New VCL Project
1 - add OdacVcl to the uses clause;
2 - place TOraSession, TSmartQuery, TMemo and TButton on the form;
3 - setup OraSession1 with appropriate UserName, Password and Server;
4 - set SmartQuery1.Debug property to True;
3 - write the next code in the Button1.OnClick event handler:
SmartQuery1.SQL.Text := 'Select * from Emp';
SmartQuery1.Debug := True;
SmartQuery1.Options.QueryRecCount := True;
SmartQuery1.Open;
Memo1.Lines.Add(IntToStr(SmartQuery1.RecordCount));
4 - execute it
First you must see the following SQL in debug window : 'SELECT Count(*) FROM (Select * from Emp)' then 'Select * from Emp'. In the Memo you will get exact record count in table Emp.
If something going in other way, please notify me.
Create New VCL Project
1 - add OdacVcl to the uses clause;
2 - place TOraSession, TSmartQuery, TMemo and TButton on the form;
3 - setup OraSession1 with appropriate UserName, Password and Server;
4 - set SmartQuery1.Debug property to True;
3 - write the next code in the Button1.OnClick event handler:
SmartQuery1.SQL.Text := 'Select * from Emp';
SmartQuery1.Debug := True;
SmartQuery1.Options.QueryRecCount := True;
SmartQuery1.Open;
Memo1.Lines.Add(IntToStr(SmartQuery1.RecordCount));
4 - execute it
First you must see the following SQL in debug window : 'SELECT Count(*) FROM (Select * from Emp)' then 'Select * from Emp'. In the Memo you will get exact record count in table Emp.
If something going in other way, please notify me.