ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Multiline Zone functions
  • Characteristics of inserted dynamic row
  • Error case
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Inserts a new dynamic row in a Multiline Zone control. This row is added at the position specified in the zone of the dynamic rows.
Example
// Ajout d'un réseau
nLigne is int = 4
mlzInsertLine(ZM_Réseau, nLigne)
ZM_Réseau[nLigne].LIB_NomReseau = "Réseau"
ZM_Réseau[nLigne].IMG_Disponible.Visible = True
Syntax
mlzInsertLine(<Multiline Zone control> , <Position>)
<Multiline Zone control>: Control name
Name of the Multiline Zone control to be used.
<Position>: Integer
Index of row to add.
Index "1" corresponds to the first row of the Multiline Zone control. All rows are numbered (static rows and dynamic rows).
If the Multiline Zone control contains static rows and dynamic rows, the number of static rows must be taken into account.
Remarks

Characteristics of inserted dynamic row

  • The inserted 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:
    mlzInsertLine(ZM_Produits, nLigne)
    ZM_Produits[nLigne].LIB_NomProdLigne = stLigne.sLibProd
    ZM_Produits[nLigne].LIB_NomProdLigne.Couleur = LightBlue
    ZM_Produits[nLigne].SAI_QteLigne = stLigne.nQuantite
  • The inserted row is not selected by default. To select the added line, simply assign the value of the Multiline Zone control line index.
    For example:
    mlzInsertLine(ZM_Produits, nLigne)
    ZM_Produits = nLigne
    or
    mlzInsertLine(ZM_Produits, nLigne)
    ZM_Produits.Valeur = nLigne
  • When adding the dynamic row, the initialization processes of the controls in the row are run.
  • Multiline Zone control is resized to take account of the inserted line: the field is enlarged downwards. 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 events of the row controls triggers an error.
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help