PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | French EN
  • Use conditions
  • Sort
  • Handling a binary memo
  • 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.
Remark: We recommend that you use <Looper>.ModifyLine. Indeed, <Looper>.ModifyLine allows you to insert:
  • TAB characters into the attributes/controls.
  • all types of values into the attributes/controls.
Example
// Modify a row in a Looper control
LOOP_Looper1.Modify(ProductName + TAB + ProductCode, Subscript)
// Modifies a value in the Looper control at position 12
LOOP_Looper1.Modify(LastName + TAB + FirstName + TAB + ...
PhoneNum + TAB + FaxNum, 12)
Syntax
<Looper control>.Modify(<Value> [, <Subscript>])
<Looper control>: Control name
Name of Looper control to use.
<Value>: Character string
List of modified values. This parameter must have the following format:
<Value 1> + TAB + ... + <Value N>

The different values must be specified in the order of attributes (description window of Looper control).
To specify no value for an attribute, use an empty string ("") or 0 (depending on the type of the attribute).
<Subscript>: Optional integer
Subscript of row to modify.
  • If this parameter is not specified, the modification will be performed on the current element.
  • If <Subscript> is greater than the number of rows, <Looper>.Modify is equivalent to <Looper>.Add.
Remarks

Use conditions

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

Sort

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

Handling a binary memo

To modify a binary memo in a Looper control, use <Looper>.ModifyLine.
Reports and Queries

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
// in "LOOP_Looper1" for row 23
LOOP_Looper1[23].LastNameControl = "Hobbes"
LOOP_Looper1[23].FirstNameControl = "Samantha"
Component : wd250obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment