兄弟试试这个:
unit fpFindUnit;
interface
uses
Windows, Messages,...;
type
TfrmfpFind = class(TfrmBaseFind)
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmfpFind: TfrmfpFind;
function fpFind(var WhereStr:string):boolean;
implementation
{$R *.DFM}
function fpFind(var WhereStr:string):boolean;
begin
Result := false;end;
end.
unit Unit2;
interface
uses
Windows, Messages,...;
type
Tform2 = class(Tform)
private
{ Private declarations }
public
{ Public declarations }
end;
var
form2: Tform;
implementation
{$R *.DFM}
uses fpFindUnit;
procedure Tform2.actFilterExecute(Sender: TObject);
var
s:string;
begin
fpFind(s);
end;