参数传递问题 我想把一二维数组作为一函数的传入参数,该怎样实现?????多谢指点 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function test(AArray: array of integer); fuction test(Arr: array of array of integer); 必须先自定义数组类型,比如type TMyArray=array [0..9] of Integer;procedure TForm1.Test( myArray: TMyArray);begin //end; 在 delphi函数里好象不支持数组作为参数?不能声名 unit Unit1;interfaceuses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type a=array of integer; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public procedure abc(bb:a);{ Public declarations } end; var Form1: TForm1; aa:a;implementation{$R *.DFM}procedure tform1.abc(bb:a);beginshowmessage(inttostr(bb[0]));end;procedure TForm1.Button1Click(Sender: TObject);beginsetlength(aa,100);aa[0]:=123;abc(aa);end;end.完整实例!!结贴:) 如何比较表中相同的记录? 怎样使用case语句控制radiobutton 考得不错,发个邪恶的小玩意(别找我要分,我快穷死了) vista上网问题! [求助]关于用dispose释放内存的问题 一个利用ADO连接的三层结构问题。。希得大侠指点 目的:1、散分 (早来早得,多来多得) 2、呼吁所有发帖子的楼主能够尊重一下回复帖子的朋友!!! 关于计算字段的错误,请大家帮我看看 谁有用delphi做b/s结构程序的说明。 “插件”是什么时候用最好,我怎么一点思路也没有? 初级问题——多选项卡的选择 关于treeview
begin //
end;
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
a=array of integer;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
procedure abc(bb:a);{ Public declarations }
end;
var
Form1: TForm1;
aa:a;
implementation{$R *.DFM}procedure tform1.abc(bb:a);
begin
showmessage(inttostr(bb[0]));
end;procedure TForm1.Button1Click(Sender: TObject);
begin
setlength(aa,100);
aa[0]:=123;
abc(aa);
end;end.
完整实例!!结贴:)