verificar se tabela está fechada !!!

Delphi

13/02/2003

Preciso de uma rotina que me informe se a tabela está aberta ou não, já tentei mas não dá certo o que estou fazendo errado !!!!

If table1.close then
Begin
MessageBox(Handle,´Tabela Fechada´´,´Atenção´,mb_ok);
exit;
End;

___________________________________________________

var
testa : boolean ;
testa := table1.close;
If testa = true then
Begin
MessageBox(Handle,´Tabela Fechada´´,´Atenção´,mb_ok);
exit;
End;


Oscarluiz

Oscarluiz

Curtidas 0

Respostas

Anonymous

Anonymous

13/02/2003

tente
if table.active=false then
begin
showmessage(´tabela fechada´);
end
else
begin
showmessage(´tabela aberta);
end;


GOSTEI 0
Anonymous

Anonymous

13/02/2003

Só uma dica: qdo se trabalha com booleanos não é necessário utilizar o operador ´=´.

if table.active
then showmessage(´tabela aberta´);
else showmessage(´tabela fechada´);


GOSTEI 0
POSTAR