Share via


FormDataSource.delete Method

Deletes the current record from the data source.

Syntax

public void delete()

Run On

Client

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.

Examples

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(); 
}

See Also

FormDataSource Class

FormDataSource.deleteMarked Method