unit Unit1; interface usesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,Dialogs, StdCtrls, Buttons; typeTForm1 = class(TForm)BitBtn1: TBitBtn;Memo1: TMemo;procedure BitBtn1Click(Sender: TObject);private{ Private declaratio…