6. Working with Arrays, Table Fields, and Collections : Table Field Operations : How You Can Enable and Disable User Modifications to Table Field Data : How You Can Delete Rows
 
Share this page                  
How You Can Delete Rows
The user can delete rows by using the Delete Current Row or Delete All Rows menu items of the table field's control button.
You can enable or disable deletions by enabling or disabling these menu items. The following code exemplifies disabling the delete menu items:
field(tblfld_controlbutton.deletecurrent).
    CurBias = MB_DISABLED;
field(tblfld_controlbutton.deleteall).
    CurBias = MB_DISABLED;
By default this menu item is enabled only in FM_UPDATE and FM_QUERY modes, and disabled in FM_READ, FM_USER1, FM_USER2, and FM_USER3 modes.