i have some problems using the RecordCount function with mySQL direct.
I get a exception.
Is there anything wrong in my Code?
Code: Select all
Form1.SQLQueryReminder.Active := false;
Form1.SQLQueryReminder.SQL.Clear;
Form1.SQLQueryReminder.SQL.Add(sql);
Form1.SQLQueryReminder.Active := true;
RemCount := Form1.SQLQueryReminder.RecordCount; <= here i get the exception !
while not Form1.SQLQueryReminder.Eof do
begin
// do something :)
Form1.SQLQueryReminder.Next;
end;
Thanks....