Usina BRAdvPL Guide
Sign in
← All topics
FUNçãOPublished

DbSeek

DbSeek( <xChave>, [lSoftSeek], [lFindLast] )

Pesquisa uma chave no índice ativo da tabela.

Banco de dadosPesquisa
01 · OVERVIEW

Overview

Posiciona o cursor no registro correspondente à chave, considerando a ordem de índice ativa.

02 · SYNTAX

Syntax

DbSeek( <xChave>, [lSoftSeek], [lFindLast] )
03 · PRACTICAL EXAMPLE

Exemplo prático

DbSelectArea("SA1")
DbSetOrder(1)
If DbSeek(xFilial("SA1") + "000001" + "01")
    ConOut(SA1->A1_NOME)
EndIf
BEST PRACTICES
  • Defina a ordem correta com DbSetOrder.
  • Use xFilial() ao compor chaves compartilhadas por filial.
Status
Published
Original language
Português
Reviewed by
Usina.BR