PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV, WINDEV Mobile 23 feature!
  • Use conditions
  • Deletion in a browsing Looper control
  • Referential integrity and browsing Looper control
  • Deletion in a browsing Looper control and Trigger
  • Management of errors
  • Locking the linked data file
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
LooperDeleteSelect (Function)
In French: ZoneRépétéeSupprimeSelect
Deletes the selected rows from a browsing or memory Looper control.
Example
// Deletes all selected rows
IF YesNo("Do you really want to delete the selected customers?") THEN
LooperDeleteSelect(LOOP_Customer_Display)
END
Syntax
LooperDeleteSelect(<Looper Control>)
<Looper Control>: Control name
Name of Looper control.
If this parameter is equal to an empty string (""), the deletion will be performed in the current Looper control.
Remarks

Use conditions

LooperDeleteSelect can be used on a browsing or memory Looper control.

Deletion in a browsing Looper control

LooperDeleteSelect deletes the corresponding records from the data file associated with the control. If items are linked to other data files, no modification is automatically performed on these linked data files.

Referential integrity and browsing Looper control

If the management of referential integrity is enabled (HSetIntegrity), HErrorIntegrity must be called after LooperDeleteSelect to check the integrity. If an integrity error is detected, the row is not deleted and it remains visible in the control.

Deletion in a browsing Looper control and Trigger

You have the ability to activate a trigger when deleting a record from a browsing Looper control. See the documentation about HDescribeTrigger for more details.

Management of errors

The ErrorOccurred variable is set to True if the deletion fails. To find out the error details, use ErrorInfo.

Locking the linked data file

If the data file is locked in the current process, LooperDeleteSelect deletes the specified row and unlocks the data file.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
Linux wd230obj.so
Minimum required version
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment