Ir para conteúdo
Fórum Script Brasil
  • 0

(Resolvido) duvida sobre DBNavigator1


rickayron

Pergunta

2 respostass a esta questão

Posts Recomendados

  • 0
no evento onclick engloba todas as funçoes mas eu indenticar a ação de insersao toda vez que for inserir executar uma inserção a parte é possivel

Voce pode usar cada uma das fun~ções independentemente

Exemplo:

procedure TForm1.DBNavigator1Click(Sender: TObject;
  Button: TNavigateBtn);
begin

   if Button = nbFirst then
      begin
           // comandos
      end;

   if Button = nbPrior then
      begin
           // comandos
      end;

   if Button = nbNext then
      begin
           // comandos
      end;

   if Button = nbLast then
      begin
           // comandos
      end;

  if Button = nbInsert then
      begin
           // comandos
      end;

   if Button = nbDelete then
      begin
           // comandos
      end;

   if Button = nbEdit then
      begin
           // comandos
      end;

   if Button = nbPost then
      begin
           // comandos
      end;

   if Button = nbCancel then
      begin
           // comandos
      end;

   if Button = nbRefresh then
      begin
           // comandos
      end;
end;

abraço

Link para o comentário
Compartilhar em outros sites

  • 0
no evento onclick engloba todas as funçoes mas eu indenticar a ação de insersao toda vez que for inserir executar uma inserção a parte é possivel

Voce pode usar cada uma das fun~ções independentemente

Exemplo:

procedure TForm1.DBNavigator1Click(Sender: TObject;
  Button: TNavigateBtn);
begin

   if Button = nbFirst then
      begin
           // comandos
      end;

   if Button = nbPrior then
      begin
           // comandos
      end;

   if Button = nbNext then
      begin
           // comandos
      end;

   if Button = nbLast then
      begin
           // comandos
      end;

  if Button = nbInsert then
      begin
           // comandos
      end;

   if Button = nbDelete then
      begin
           // comandos
      end;

   if Button = nbEdit then
      begin
           // comandos
      end;

   if Button = nbPost then
      begin
           // comandos
      end;

   if Button = nbCancel then
      begin
           // comandos
      end;

   if Button = nbRefresh then
      begin
           // comandos
      end;
end;

abraço

obrigado ...

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,2k
    • Posts
      651,9k
×
×
  • Criar Novo...