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

nextRecord()


Guest --Rafa --

Pergunta

Guest --Rafa --

ola pessoal,

c eu utiliza o método nextRecord(); --->> reNomes.nextRecord(); ele vai me retornar o registro do id seguinte não é? ?

como fazer para receber o primeiro registro do id 0 do RecordEnumeration ? ou seja o registro atual

Link para o comentário
Compartilhar em outros sites

1 resposta a esta questão

Posts Recomendados

  • 0

Segundo a documentação:

The first call to nextRecord() returns the record data from the first record in the sequence. Subsequent calls to nextRecord() return the next consecutive record's data. To return the record data from the previous consecutive from any given point in the enumeration, call previousRecord(). On the other hand, if after creation, the first call is to previousRecord(), the record data of the last element of the enumeration will be returned. Each subsequent call to previousRecord() will step backwards through the sequence until the beginning is reached.

Ou seja, na primeira chamada, ele retorna o primeiro registro.

Nota: Os ids começam em 1, se não me engano.

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,1k
    • Posts
      651,9k
×
×
  • Criar Novo...