ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Looper functions
  • Use conditions
  • Use with a Looper control based on a data file
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
LooperDelete (Function)
In french: ZoneRépétéeSupprime
Deletes a row from a Looper control. The Looper control is automatically refreshed.
Example
// Delete row 1
LooperDelete(LOOP_ProdLooper, 1)
// Delete the current row
LooperDelete(LOOP_ProdLooper)
Syntax
LooperDelete(<Looper control> [, <Index> [, <Animation>]])
<Looper control>: Control name
Name of the Looper control to be used.
If this parameter is equal to an empty string (""), the deletion will be performed in the current Looper control.
<Index>: Optional integer
Index of the row to delete.
  • If this parameter is not specified, the deletion will be performed in the current row.
  • If <Index> is greater than the number of rows, LooperDelete has no effect.
<Animation>: Optional Integer constant
WINDEVUniversal Windows 10 AppAndroidiPhone/iPad Management of animation during the deletion:
loopAnimationDeletePlays an animation during the deletion. This animation corresponds to a disappearance effect by reducing the height of the row.
loopAnimationNone
(Default value)
No animation is played during the deletion.
Remarks

Use conditions

LooperDelete can be used on:
  • a Looper control based on a data file,
  • a Looper control populated programmatically.
WEBDEV - Browser code This function is not available for Linear Looper controls. This function is available for Looper controls in browser mode only.
WEBDEV - Server codePHP This function is available for Looper controls in Ajax mode, Looper controls in classic mode and Linear Looper controls.
PHP LooperDelete can only be used on a Looper control populated programmatically.

Use with a Looper control based on a data file

If the Looper control is based on a data file:
  • the record is deleted from the data file.
  • the next row is selected (if the last row is deleted, the previous row will be selected). The record selected in the linked data file corresponds to the selected row.
Component: wd290obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help