FUNçãOPublicado
DbSeek
DbSeek( <xChave>, [lSoftSeek], [lFindLast] )Pesquisa uma chave no índice ativo da tabela.
Descripción general
Posiciona o cursor no registro correspondente à chave, considerando a ordem de índice ativa.
Sintaxis
DbSeek( <xChave>, [lSoftSeek], [lFindLast] )Exemplo prático
DbSelectArea("SA1")
DbSetOrder(1)
If DbSeek(xFilial("SA1") + "000001" + "01")
ConOut(SA1->A1_NOME)
EndIf- Defina a ordem correta com DbSetOrder.
- Use xFilial() ao compor chaves compartilhadas por filial.
