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 Zona Multilínea
  • Characteristics of added dynamic row
  • Error case
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
Adds a new dynamic row into a Multiline Zone control. This row is added at the end of the zone of the dynamic rows.
The dynamic row was previously defined in edit ("Definir como fila repetida del control" checked in the "General" tab of the control description window).
Ejemplo
// Add a network 
nRow is int 
nRow = mlzAddLine(MZ_Network)
MZ_Network[nRow].STC_NetworkName = "Network"
MZ_Network[nRow].IMG_Available.Visible = True
Sintaxis
<Result> = mlzAddLine(<Multiline Zone control>)
<Result>: Integer
Index of added row.
<Multiline Zone control>: Control name
Name of the Multiline Zone control to be used.
Observaciones

Characteristics of added dynamic row

  • The added dynamic row is empty by default.
  • To customize the row (caption, color, visibility of elements, etc.), the controls must be modified by the following syntax:
    <Multiline Zone control>[<Index>].<Control name>.<Property> = <Value>

    For example:
    nRow is int = mlzAddLine(MZ_Products)
    MZ_Products[nRow].STC_NameProdRow = stRow.sProdCap
    MZ_Products[nRow].STC_NameProdRow.Color = LightBlue
    MZ_Products[nRow].EDT_QtyRow = stRow.nQuantity
  • The added row is not selected by default. To select the added row, the value of the row index must be assigned to the Multiline Zone control.
    For example:
    nRow is int = mlzAddLine(MZ_Products)
    MZ_Products = nRow
    or
    nRow is int = mlzAddLine(MZ_Products)
    MZ_Products.Value = nRow
  • When adding the dynamic row, the initialization events of the controls in the row are run.
  • Multiline Zone control is resized to take account of the added line: the field is enlarged at the bottom. If controls are located below the Multiline Zone control, they are moved to the bottom. The useful height of the window is enlarged accordingly: you can scroll the window with your finger to see the bottom of the Multiline Zone control and any fields below it.

Error case

An error occurs in the following cases:
  • no dynamic row is defined in the Multiline Zone control.
  • more than 300 dynamic rows are found in the Multiline Zone control
  • one of the initialization processes of the row controls triggers an error.
Versión mínima requerida
  • Versión 17
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

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