unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
type Tbmp=array[0..20] of TBitmap;
var
Form1: TForm1;
function showpicture: Tbmp;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
showpicture;
end;
function showpicture: Tbmp;
var
PBmp:Tbmp;
begin
Pbmp[0]:=TBitMap.Create;
end;
end.
我这样写,Pbmp[0]:=TBitMap.Create;会报错,弄不懂是怎么回事?帮我一下啊,急的不行了.