PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 25 → Aula 1110 - WinDev Tabela - 057/... - Tabela Navegar Inicio final Proximo Anterior
Aula 1110 - WinDev Tabela - 057/... - Tabela Navegar Inicio final Proximo Anterior
Débuté par amarildo, 04 avr. 2017 09:32 - Aucune réponse
Membre enregistré
535 messages
Popularité : +14 (14 votes)
Posté le 04 avril 2017 - 09:32
Na dica de hoje..
Vou ensinar como fazer o seguinte:
Navegar na tabela,
indo para ultimo,primeiro,
anterior ou proximo
Dica para Washington

In today's tip ..
I'll teach you how to do the following:
Browse the table,
Going to last, first,
Previous or next
Tip for Washington

// Ultimo Registro

TableSelectPlus(TABLE_Tecnico,TABLE_Tecnico..Occurrence)

// Seleciona uma linha em um Table e posiciona no ultimo
// Selects a row in a Table and positions in the last row

// Ir para o Primeiro

TableSelectPlus(TABLE_Tecnico,1)

// Posiciona no Primeiro iten da Tabela
// Positions on the First Item of the Table

//Proximo
gn_registro_atual++
// Estou somando 1 a registro atual
// I am adding 1 to the current record
IF gn_registro_atual>TABLE_Tecnico..Occurrence THEN
// Se o Registro atual for maior que quantidade dos itens da tabela
// If the current record is greater than the number of table items
gn_registro_atual=1
// vou deixar o registro atual como 1
// I'll leave the current record as 1
END
TableSelectPlus(TABLE_Tecnico,gn_registro_atual)
// Ele vai posicionar conforme o registro atual
// It will position according to the current record

// REgistro Anterior
gn_registro_atual--
// Estou diminuindo 1 ao registro atual
// I am decreasing 1 to the current record
IF gn_registro_atual<1 THEN
// Se registro atual for menor que 1 entao
// If the current record is less than 1 then
gn_registro_atual=TABLE_Tecnico..Occurrence
// registro atual é igual a quantidade de itens da tabela
// Current record is equal to the amount of table items
END
TableSelectPlus(TABLE_Tecnico,gn_registro_atual)
// Ele vai posicionar conforme o registro atual
// It will position according to the current record

Procedure MyWindow()

gn_registro_atual is int=0

// Vou criar variavel registro atual inteiro para percorrer tabela
// I will create variable current whole record to scroll table


http://windevdesenvolvimento.blogspot.com.br/2017/04/aula-1110-windev-tabela-057-tabela.html

Message modifié, 04 avril 2017 - 09:33