0
Follows the code:
status := DataModule1.ZQuery2.FieldByName('Msg_text').AsString;
while not DataModule1.ZQuery1.Eof do
begin
if status <> 'OK' then
begin
DataModule1.ZQuery3.Close;
DataModule1.ZQuery3.SQL.Clear;
DataModule1.ZQuery3.SQL.Add('Repair tables ' + Parametro);
DataModule1.ZQuery3.Open;
ShowMessage(DataModule1.ZQuery3.Sql.Text);
end
else
begin
DataModule1.ZQuery1.Next;
end;
end;
With the help of Filipe.Fonseca, I was able to check the items, below the link.
Check the tables that appear on my first Dbgrid
I just want the Msg_Text
, Don’t be OK, he performs the Repair
.
Someone could help me?
Damn, man, it’s right again, I was performing the while with the Zquery1. and not with the 2. But ta show! It worked. As soon as I corrupt a database I’ll test it out and I’ll tell you.
– Ramon Ruan