unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Edit1: TEdit;
    Button1: TButton;
    Edit2: TEdit;
    Edit3: TEdit;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation
{$L Copy_a}
{$R *.dfm}
function CopyS(St:ShortString):ShortString;pascal;external;

procedure Print(n:integer);pascal;
begin
  Form1.Edit3.Text:=inttostr(n);
end;

procedure TForm1.Button1Click(Sender: TObject);
Var S,St:ShortString;
begin
     St:=Edit1.Text;
     S:=CopyS(St);
     Edit2.Text:=S;
end;

end.
