7
7681281
Unregistered / Unconfirmed
GUEST, unregistred user!
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
Report: array of Byte;
procedure test(var report;msg:string);
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure Tform1.test(var report;msg:string);
begin
//在这监视Report的值 我这一直显示no value 如何才能有数据呢?
showmessage(msg);
end;
procedure TForm1.FormCreate(Sender: TObject);
var
a:array [0..3] of byte;
B:array [0..8] of byte;
begin
a[0]:=5;
test(a,'a');
b[7]:=5;
test(b,'b');
end;
end.
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
Report: array of Byte;
procedure test(var report;msg:string);
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure Tform1.test(var report;msg:string);
begin
//在这监视Report的值 我这一直显示no value 如何才能有数据呢?
showmessage(msg);
end;
procedure TForm1.FormCreate(Sender: TObject);
var
a:array [0..3] of byte;
B:array [0..8] of byte;
begin
a[0]:=5;
test(a,'a');
b[7]:=5;
test(b,'b');
end;
end.