注册 登录
编程论坛 Delphi论坛

求高手看看全局变量那里错了

书桌台灯 发布于 2013-05-16 10:07, 968 次点击
var
  Form1: TForm1;
  type
       bancai=^bc;   //板材的数据结构
         bc=record
         long:real;
         width:real;
         x1:real;
         y:real;
         page:integer;
         next:bancai;
     end
  p,q,:bancai;
implementation

{$R *.dfm}
3 回复
#2
mayanzs2013-05-16 14:33
type语句应提前,不要放在var声明中,应在
type
  Tform1 = class(Tform)
之前
#3
书桌台灯2013-05-17 21:21
回复 2楼 mayanzs
再次请教  我运行时有个这个错误 您给看看是什么错误     list index out of bounds(-1) delphi  这是什么错误 新手求大侠帮助
#4
mayanzs2013-05-18 16:44
下标超出范围。
1