FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
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
Connectez-vous…
amarildo
#1
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
Signaler
0
0
→ Revenir à WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte