verificar se tabela está fechada !!!
13/02/2003
0
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;
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
Curtir tópico
+ 0
Responder
Posts
13/02/2003
Anonymous
tente
if table.active=false then
begin
showmessage(´tabela fechada´);
end
else
begin
showmessage(´tabela aberta);
end;
if table.active=false then
begin
showmessage(´tabela fechada´);
end
else
begin
showmessage(´tabela aberta);
end;
Responder
13/02/2003
Anonymous
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´);
if table.active
then showmessage(´tabela aberta´);
else showmessage(´tabela fechada´);
Responder
Clique aqui para fazer login e interagir na Comunidade :)