Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ParameterDescription
RecordIndex to the record where the insertion will take place

Remarks

The BeforeDeleteRecords BeforeInsertRecords event is fired when the user presses the insert key but before a record is actually inserted. You can prevent the record from being inserted by setting the Cancel property to 1. Also, if the AllowInserts property is set to 0, then this event never fires since the user can never insert records.

The Record parameter is the intended location of the record to be deleted and the Count parameter is the number of records being deleted. Currently, the user can only delete one record at a time, so this parameter will always be 1when inserted. So, if the user pressed the insert key while row 3 was selected, then this parameter will be 3.

Using the Cancel property to cancel the event only works if the event was qualified synchronously.

...