不会吧!把它放在
type
TForm1 = class(TForm)
前面
然后Tform1 Public属性:加上 myAr:Array of ar 注意不要加 var
type
TForm1 = class(TForm)
前面
然后Tform1 Public属性:加上 myAr:Array of ar 注意不要加 var
解决方案 »
- sql server 数据库的超麻烦问题,急
- 怎么打印数据库的表格!
- 如何控制MaskEdit中显示的日期不会超过正常值
- 16进制数的字符串显示,及 00111111EA09 在LABEL.CAPTION中显示为00111111EA09==急
- 关于图形转换方法,急需,提供信息者均有分!!
- 求救:数据库恢复问题,解决就给分,不够再加!!问题不难,快来抢分!!!!!!!
- 怎么使一个窗口不能被最大化?怎么使窗口打开时处于屏幕中央?
- 关于Access数据库联接。。。急急啊。
- 如何从客户端往远程数据库写数据
- 急????为什么我在安装LMD5。0时候它说时间不对呀???错误如下!!!
- 怎么样实现仿真按键ALT+TAB(ALT按下不放)
- 简单:ListView 的拖动?????
是否为:
type AR=record
ID:integer;
Caption:String;
end;
TForm1 = class(TForm)
.........public
myAr:Array of ar;啊?
看看你的代码是不是如下:
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;type ar=Record
ID:integer;
Caption:String;
end;type TForm1 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
myAr:Array of ar;
end;var
Form1: TForm1;implementation{$R *.DFM}end.
database=record
mc:string;
bz:string;
end;
TF_tj_bbdz_1 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Panel1: TPanel;
Panel2: TPanel;
ListBox1: TListBox;
ListBox2: TListBox;
SpeedButton1: TSpeedButton;
SpeedButton2: TSpeedButton;
SpeedButton3: TSpeedButton;
SpeedButton4: TSpeedButton;
BitBtn2: TBitBtn;
BitBtn3: TBitBtn;
procedure checkspeedbutton;
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure BitBtn3Click(Sender: TObject);
procedure ListBox1Click(Sender: TObject);
procedure ListBox2Click(Sender: TObject);
procedure SpeedButton1Click(Sender: TObject);
procedure SpeedButton2Click(Sender: TObject);
procedure SpeedButton3Click(Sender: TObject);
procedure SpeedButton4Click(Sender: TObject);
procedure BitBtn2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;