Share via


FormDataSource.delete Method

Definition

Deletes the current record from the data source.

public:
 override void delete();
public override void delete ();
override this.delete : unit -> unit
Public Overrides Sub delete ()

Remarks

This method is called when a user deletes a record in a form. The delete method calls the FormDataSource.validateDelete method. If the validateDelete method returns true, the record is deleted. After the deletion, the cursor is positioned on the next record (if there is one). The delete method can be overridden on a form data source by right-clicking the Methods node under the data source, pointing to Override Method, and then clicking delete.

The following example overrides the delete method on the Errors data source for the SysCompilerOutput form. The method updates the number of errors that are displayed in the Compiler output form after an error has been removed.

public void delete() 
{ 
    super(); 
    sysCompilerOutput.updateCounters(); 
}

Applies to