PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Use conditions
  • Characteristics of the row
  • Sort
  • Modifying a Looper control without attributes
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
Modifies the values of attributes in a row found in a browsing or memory Looper control.
WINDEVWINDEV Mobile For the Looper controls without attributes, we advise you to directly modify the value of relevant controls. See Modifying a Looper control without attributes for more details.
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
iPhone/iPad This function is now available for the iPhone/iPad applications.
WEBDEV - Browser code This function is now available in Browser code.
New in version 17
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.
WEBDEV - Browser code This function is now available in Browser code.
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
// Modify a row in a looper
LooperModifyLine(LOOP_Looper1, Subscript, ProductName, ProductCode)
// Modifies a value in the looper at position 12
LooperModifyLine(LOOP_Looper1, 12, LastName, FirstName, PhoneNum, FaxNum)
Syntax
LooperModifyLine(<Looper Control> [, <Subscript> [, <Value 1> [... [, <Value N>]]]])
<Looper Control>: Control name
Name of Looper control.
If this parameter is equal to an empty string (""), the modification will be performed in the current Looper control.
<Subscript>: Optional integer
Subscript of row to modify.
  • If this parameter is not specified, the modification will be performed on the current element.
  • A WLanguage error is displayed if <Subscript> is greater than the number of rows.
<Value 1>: Type of the associated attribute (optional)
Value of the 1st attribute of the row that must be modified in the specified Looper control.
The different values must be specified in the order of attributes (description window of the Looper control).
If none of these parameters is specified, LooperModifyLine assigns an empty string ("") or 0.
<Value N>: Type of the associated attribute (optional)
Value of the Nth attribute of the row that must be modified in the specified Looper control.
The different values must be specified in the order of attributes (description window of the Looper control).
If none of these parameters is specified, LooperModifyLine assigns an empty string ("") or 0.
Remarks

Use conditions

LooperModifyLine can be used on a browsing or memory Looper control.
PHP LooperModifyLine 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.

Characteristics of the row

If a value corresponds to the result of a calculation, the numeric expression must be enclosed in brackets. For example:
LooperModifyLine(LOOP_CalcLooper, 5, (53+29), (83-21))

Sort

If LooperModifyLine modifies a sort attribute of the current Looper control, the sort on this attribute will be canceled.

Modifying a Looper control without attributes

To modify a Looper control without attributes, we recommend you directly modify the value of the relevant controls.
For example:
// Modify the value of controls
// found in "LOOP_Looper1" for the row 23
LOOP_Looper1[23].LastNameControl = "Hobbes"
LOOP_Looper1[23].FirstNameControl = "Samantha"
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