AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Looper
  • Selection bar and <Looper>.Posición function
  • Displaying a row at the first position in the Looper control (syntax 1)
  • Use conditions
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Moves the scrollbar to display a specific row or returns the index of the first row displayed in a Looper control populated programmatically.
Ejemplo
// Indice de la première répétition affichée dans le champ Zone répétée "ZR_Produit"
ResPosition = ZR_Produit.Position()
Sintaxis

Visualización de un control Looper de una fila específica Ocultar los detalles

<Looper control>.Position(<Index>)
<Looper control>: Nombre del control
Name of the Looper control to be used.
Caution: It is not possible to use a Linear Looper control..
<Index>: Integro
Index of the row that will be displayed at the first position in the Looper control.
The last row is selected by default if this parameter is greater than the number of rows in the Looper control (returned by <Looper>.Count).

Obtener el índice de la primera fila mostrada en un control Looper Ocultar los detalles

<Result> = <Looper control>.Position()
<Result>: Integro
Index of the first row displayed in the specified Looper control.
<Looper control>: Nombre del control
Name of the Looper control to be used.
Caution: It is not possible to use a Linear Looper control.
Observaciones

Selection bar and <Looper>.Posición function

<Looper>.Posición does not change the current row (i.e. the row highlighted by the selection bar).
Therefore, if the Looper control has focus when <Looper>.Posición is run, the current row and the specified row must be visible at the same time. If the current row and the specified row cannot be displayed at the same time, the Looper control will be displayed from the current row (and not from the row at <Index>).

Displaying a row at the first position in the Looper control (syntax 1)

The row displayed at the first position may not be the requested row. Indeed, <Looper>.Posición tries to display as many rows as possible in the Looper control.
<Looper>.Posición will display the specified row only if this row is followed by a sufficient number of non-empty rows.
WEBDEV - Código ServidorWEBDEV - Código Navegador

Use conditions

  • WEBDEV - Código Servidor <Looper>.Posición can only be used in a standard Looper control without scrollbar.
  • WEBDEV - Código Navegador <Looper>.Posición can only be used with a Looper control in Browser code.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 23
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 30/09/2024

Señalar un error o enviar una sugerencia | Ayuda local