PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English 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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Modifies the values of attributes in a row found in a browsing or memory Looper control.
Remark: It is recommended to use the <Looper>.ModifyLine. Indeed, <Looper>.ModifyLine allows you to insert:
  • TAB characters into the attributes/controls.
  • all types of values into the attributes/controls.
WINDEV Mobile For the Looper controls without attributes, we advise you to directly modify the value of relevant controls. For more details, see "Modifying a Looper control without attributes.
Versions 15 and later
Android This function is now available for Android applications.
New in version 15
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Versions 16 and later
Universal Windows 10 App This function is now available for Windows Phone applications.
New in version 16
Universal Windows 10 App This function is now available for Windows Phone applications.
Universal Windows 10 App This function is now available for Windows Phone applications.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for 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
// Modification d'une répétition dans un champ Zone répétée
ZR_Zone1.Modifie(NomProduit + TAB + CodeProduit, Indice)
// Modifie une valeur dans le champ Zone répétée en 12ème position
ZR_Zone1.Modifie(Nom + TAB + Prenom + TAB + ...
NumTel + TAB + NumFax, 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:
<Valeur 1> + TAB + ... + <Valeur N>

The different values must be specified in the order of the attributes (Looper control description window).
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 the <Looper>.Modify function modifies a sort attribute of the current Looper control, the sorting on this attribute will be cancelled.

Handling a binary memo

To modify a binary memo in a Looper control, use <Looper>.ModifyLine.
Universal Windows 10 AppAndroidiPhone/iPad

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:
// Modification de la valeur des champs
// de la zone répétée "ZR_Zone1" pour la répétition 23
ZR_Zone1[23].ChampNom = "Hobbes"
ZR_Zone1[23].ChampPrénom = "Samantha"
Component: wd270obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment