PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Use conditions
  • Adding an empty row
  • Characteristics of the row
  • Position of added row
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
Adds a row at the end of a Looper control. The attributes of added row may contain tabulations.
Versions 16 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
Universal Windows 10 App This function is now available for Windows Phone applications.
New in version 16
WINDEVLinux This function is now available for WINDEV applications in Linux.
Universal Windows 10 App This function is now available for Windows Phone applications.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Universal Windows 10 App This function is now available for Windows Phone applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
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
// Initialize the Looper control named LOOP_LOOPER1
LOOP_LOOPER1.DeleteAll()
HReadFirst(Product, ProdName)
WHILE HOut(Product) = False
LOOP_LOOPER1.AddLine(Product.ProdName, Product.Code)
HReadNext(Product, ProdName)
END
Syntax

Adding a row to a Looper control with attributes Hide the details

<Result> = <Looper control>.AddLine([<Value 1> [, <Value N>]])
<Result>: Integer
  • Number of the added row,
  • 0 if an error occurred.
<Looper control>: Control name
Name of Looper control to use.
<Value 1>: Type of associated attribute (optional)
Value of 1st attribute for the new row.
The different values must be specified in the order of attributes (description window of Looper control).
To specify no value for one of the attributes, use an empty string ("") or 0 (depending on the type of attribute).
An empty row will be added if none of these parameters is specified.
<Value N>: Type of associated attribute (optional)
Value of Nth attribute for the new row.
The different values must be specified in the order of attributes (description window of Looper control).
To specify no value for one of the attributes, use an empty string ("") or 0 (depending on the type of attribute).
An empty row will be added if none of these parameters is specified.
WINDEVUniversal Windows 10 AppJavaUser code (UMC)

Adding a row to a Looper control without attributes Hide the details

<Result> = <Looper control>.AddLine()
<Result>: Integer
Number of the added row.
<Looper control>: Control name
Name of Looper control to use.
Remarks

Use conditions

<Looper>.AddLine can be used on a browsing or memory Looper control.

Adding an empty row

Once an empty row was added, each attribute or each control must be initialized one by one.
For example:
WINDEV For a Looper control with attributes:
// Add an empty row
LOOP_LOOPER1.AddLine()

// Position on the empty row
// (the Looper control is not sorted)
Subscript = LOOP_LOOPER1.Count()
// Then, initialize the attributes
ATT_AttributeLastName[Subscript] = "Hobbes"
ATT_AttributeFirstName[Subscript] = "Samantha"
ATT_ColorAttributeFirstName[Subscript] = LightRed
ATT_AttributeAddressVisible[Subscript] = False
WINDEV For a Looper control without attributes:
// Add an empty row
Subscript = LooperAddLine(LOOP_Looper1)
 
// Then, initialize the controls
LOOP_Looper1[Subscript].ControlLastName = "Hobbes"
LOOP_Looper1[Subscript].ControlFirstName = "Samantha"
LOOP_Looper1[Subscript].ControlFirstName..BrushColor = LightRed
LOOP_Looper1[Subscript].ControlAddress..Visible = False
WINDEV For a Looper control without attributes:
// Add an empty row
Subscript = LOOP_LOOPER1.AddLine()

// Then, initialize the controls
LOOP_LOOPER1[Subscript].ControlLastName = "Hobbes"
LOOP_LOOPER1[Subscript].ControlFirstName = "Samantha"
LOOP_LOOPER1[Subscript].ControlFirstName..BrushColor = LightRed
LOOP_LOOPER1[Subscript].ControlAddress..Visible = False

Characteristics of the row

  • If a value corresponds to the result of a calculation, the numeric expression must be enclosed in brackets.
    For example:
    LOOP_CalculationZone.AddLine((53+29), (83-21))
  • Formatting attributes (e. g. color) that are not specified in the row display code are automatically reset.

Position of added row

By default, the row is added at the end of the Looper control.
If the Looper control is sorted (<Looper>.Sort), the added row is positioned in the Looper control according to the current sort.
Component : wd240obj.dll
Minimum required version
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment