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 the added row
  • Tips
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 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Universal Windows 10 App This function is now available for the Windows Phone applications.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 17 and later
WEBDEV - Browser code This function is now available in Browser code.
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
WEBDEV - Browser code This function is now available in Browser code.
iPhone/iPad This function is now available for the iPhone/iPad applications.
WEBDEV - Browser code This function is now available in Browser code.
iPhone/iPad This function is now available for the iPhone/iPad 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 LOOP_LOOPER1
LooperDeleteAll(LOOP_LOOPER1)
HReadFirst(Product, ProdName)
WHILE HOut(Product) = False
LooperAddLine(LOOP_LOOPER1, Product.ProdName, Product.Code)
HReadNext(Product, ProdName)
END
Syntax
WEBDEV - Server codeWEBDEV - Browser codeWindowsLinuxPHPAjax

Looper with attributes Hide the details

LooperAddLine(<Looper> [, <Value 1> [... [, <Value N>]]])
<Looper>: Character string (with or without quotes)
Name of Looper control.
If this parameter is equal to an empty string (""), the addition will be performed into the current Looper control.
<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.
WINDEVReports and QueriesWindowsLinuxAndroidiPhone/iPadWindows MobileUniversal Windows 10 AppJavaUser code (UMC)

Looper with attributes Hide the details

<Result> = LooperAddLine(<Looper> [, <Value 1> [... [, <Value N>]]])
<Result>: Integer
  • Number of the added row,
  • 0 if an error occurred.
<Looper>: Character string (with or without quotes)
Name of Looper control.
If this parameter is equal to an empty string (""), the addition will be performed into the current Looper control.
<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.

Looper with attributes Hide the details

<Result> = LooperAddLine(<Looper> [, <Value 1> [... [, <Value N>]]])
<Result>: Integer
  • Number of the added row,
  • 0 if an error occurred.
<Looper>: Character string (with or without quotes)
Name of Looper control.
If this parameter is equal to an empty string (""), the addition will be performed into the current Looper control.
<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.
WINDEVReports and QueriesAndroidWindows MobileUniversal Windows 10 AppJavaUser code (UMC)

Looper without attributes Hide the details

<Result> = LooperAddLine(<Looper Control>)
<Result>: Integer
Number of the added row.
<Looper Control>: Control name
Name of Looper control.
If this parameter is equal to an empty string (""), the addition will be performed into the current Looper control.
Remarks

Use conditions

LooperAddLine can be used on a browsing or memory Looper control.
PHP LooperAddLine can be used on a memory Looper control only.
WEBDEV - Browser code This function is not available for the linear Looper controls. This function is available for the Browser Looper controls only.
WEBDEV - Server codePHP This function is available for the Ajax Looper controls, the Classic Looper controls and the linear Looper controls.

Adding an empty row

Once an empty row was added, each attribute or each control must be initialized one by one.
For example:
WINDEVWEBDEV - Server code For a Looper control with attributes:
// Add an empty row
LooperAddLine(LOOP_Looper1)

// Position on the empty row
// (the looper is not sorted)
Subscript = LooperCount(LOOP_Looper1)
// 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
WINDEVWEBDEV - Server code 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

Characteristics of the row

  • If a value corresponds to the result of a calculation, the numeric expression must be enclosed in brackets.
    For example:
    LooperAddLine(LOOP_CalculationLooper, (53+29), (83-21))
  • The formatting attributes (color for example) not specified in the display code of the row are automatically re-initialized.

Position of the added row

By default, the row is added at the end of the Looper control.
If the Looper control is sorted (LooperSort), the added row is positioned in the Looper control according to the current sort.
WEBDEV - Server code

Tips

  • Optimizing the referencing:
    If the Looper control contains an image, add an "Alternative text" attribute. Its value can be defined by programming so that the referencing of your Internet site will be improved.
  • AWP page with a Looper control containing images to display in 100% mode: In order for the 100% property to be taken into account, a border must be added to the Image control. To avoid displaying this border, the background color of the border must be identical to the background color of the page.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment