You need to subclass TEdit using the middleware class and add a handler for the WM_PASTE message:
unit Unit3; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, DB, adsdata, adsfunc, adstable; type TEdit= class(StdCtrls.TEdit) procedure WMPaste(var Msg: TWMPaste); message WM_PASTE; end; type TForm3 = class(TForm) AdsTable1: TAdsTable; Edit1: TEdit; private { Private declarations } public { Public declarations } end; var Form3: TForm3; implementation {$R *.dfm} uses Clipbrd; { TEdit } procedure TEdit.WMPaste(var Msg: TWMPaste); var TempTxt: string; begin TempTxt := Clipboard.AsText; TempTxt := StringReplace(TempTxt,
Ken white
source share