uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Grids, DBGrids, Db, DBTables, StdCtrls, StrUtils;[Fatal Error] detail.pas(7): File not found: 'StrUtils.dcu'
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Grids, DBGrids, Db, DBTables, StdCtrls, StrUtils;[Fatal Error] detail.pas(7): File not found: 'StrUtils.dcu'
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,strutils, StdCtrls;type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
begin
showmessage(leftstr('hello world',4));
end;end.---------------------------
Project1
---------------------------
hell
---------------------------
OK
---------------------------
C:\Program Files\Borland\Delphi7\Lib
如果有检查一下
tools-〉Environment options->library里是否有
$(DELPHI)\Lib