PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Characteristics of the inserted dynamic line
  • Error case
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Inserts a new dynamic line into a multiline zone. This line is added at the position specified in the zone of dynamic lines.
Versions 18 and later
Android This function is now available for the Android applications.
WINDEVWindows This function is now available for the WINDEV applications in Windows.
New in version 18
Android This function is now available for the Android applications.
WINDEVWindows This function is now available for the WINDEV applications in Windows.
Android This function is now available for the Android applications.
WINDEVWindows This function is now available for the WINDEV applications in Windows.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Add a network
nLine is int = 4
mlzInsertLine(MZ_Network, nLine)
MZ_Network[nLine].STC_NetworkName = "Network"
MZ_Network[nLine].IMG_Available..Visible = True
Syntax
mlzInsertLine(<Multiline Zone control> , <Position>)
<Multiline Zone control>: Control name
Name of Multiline Zone control to use.
<Position>: Integer
Subscript of line to add. The subscript "1" corresponds to the first line of multiline zone. All lines are numbered (static lines and dynamic lines). If the multiline zone contains static lines and dynamic lines, the number of static lines must be taken into account.
Remarks

Characteristics of the inserted dynamic line

  • The inserted dynamic line is empty by default.
  • To customize the line (caption, color, visibility of elements, ...), the controls must be modified by the following syntax:
    <Name of Multiline Zone>[<Subscript>].<Control Name>..<Property> = <Value>

    For example:
    mlzInsertLine(MZ_Products, nLine)
    MZ_Products[nLine].STC_NameProdLine = stLine.sProdCap
    MZ_Products[nLine].STC_NameProdLine..Color = LightBlue
    MZ_Products[nLine].EDT_QtyLine = stLine.nQuantity
  • The inserted line is not selected by default. To select the added line, the value of the line subscript must be assigned to the multiline zone.
    For example:
    mlzInsertLine(MZ_Products, nLine)
    MZ_Products = nLine

    or
    mlzInsertLine(MZ_Products, nLine)
    MZ_Products..Value = nLine
  • When adding the dynamic line, the initialization processes of the controls found in the line are run.
  • The size of the Multiline Zone control is modified to take the inserted line into account: the control is enlarged to the bottom. If controls are located below the multiline zone, they are moved to the bottom. The useful window height is enlarged accordingly: you have the ability to scroll the window with the finger to see the bottom of the multiline zone and the controls that may be possibly located below this zone.

Error case

An error occurs in the following cases:
  • no dynamic line was defined in the Multiline Zone control.
  • more than 300 dynamic lines are found in the multiline zone.
  • one of the initialization processes of the line controls triggers an error.
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment