Fórum Como saber se existe um componente? #290295
02/08/2005
0
if (Key = vk_F6) and (TBitBtn(FindComponent(´BtnExcluir´)).Enabled) then TBitBtn(FindComponent(´BtnExcluir´)).Click;
O problema, é que em determinadas telas eu não tenho o BtnExcluir, queria saber se tem como eu verificar se existe o botão e depois eu executar esta função acima.. assim não dá erro. ;D
[]s
Fellipe H.
Titanius
Curtir tópico
+ 0Posts
02/08/2005
Rjun
Gostei + 0
02/08/2005
Ivanh
if (Key = vk_F6) and (FindComponent(´BtnExcluir´) <> nil) and (TBitBtn(FindComponent(´BtnExcluir´)).Enabled) then TBitBtn(FindComponent(´BtnExcluir´)).Click;
Gostei + 0
02/08/2005
Titanius
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)