type
TForm1 = class(TForm)
function find(tofind,replacewith:string):string;//我要声明的函数
private
{ Private declarations }
public
{ Public declarations }
end;
但出现这种情况,是什么原因 ?
【Error】unit1.pas(11):unsatisfied forward or external declaration:'TForm1.find‘
[fatal error] project2.dpr(5): could not compile used unit 'unit.pas'
TForm1 = class(TForm)
function find(tofind,replacewith:string):string;//我要声明的函数
private
{ Private declarations }
public
{ Public declarations }
end;
但出现这种情况,是什么原因 ?
【Error】unit1.pas(11):unsatisfied forward or external declaration:'TForm1.find‘
[fatal error] project2.dpr(5): could not compile used unit 'unit.pas'
TForm1 = class(TForm)
private
{ Private declarations }//或者放在这里 看是 公有函数的还是私有函数
public
function find(tofind,replacewith:string):string;//我要声明的函数
//鼠标点在这里 用快捷 crtl+shift + c 生成函数
//
end;