Both edit and memo have the Undo function,
Undo: Revert to the previous change.
Clearundo: Undo the contents of the undo buffer, you will not be able to revert to the pre-change
Clears information about the most recent operation from the undo buffer of the text box, depending on the application
The state of the program, you can use this method to prevent repeated undo operations. The general format of the call is as follows:
The text box object. Clearundo () The method has no parameters.
Undo edit Box Selection Delete the wording:
Edt1. Undo;
Completely remove the irrevocable notation:
Edt1. ClearSelection;
Edt1. Clearundo;
Delete the selected content:
Edt1. ClearSelection;
Clear All
Edt1. Clear;
edit box Get focus
Edt1. SetFocus;
Copy to Clipboard
Edt1. CopyToClipboard;
Cut to Clipboard
Edt1. Cuttoclipboard;
These two methods are similar in that the text content selected in the edit box is copied to the Clipboard, replacing everything on the original clipboard. However, the CopyToClipboard method does not delete the content that was selected in the original edit box when it was executed. In the Cuttoclipboard method, the selection is deleted.
Paste
Edt1. Pastefromclipboard;
Summary of undo and Clearundo Copy and paste in Delphi edit