'list index out of bounds(0)'怎么处理?
来源:学生作业帮 编辑:百度作业网作业帮 分类:综合作业 时间:2024/06/07 12:48:42
'list index out of bounds(0)'怎么处理?
我用delphi编程序,编译没错误,一运行就蹦出了
'list index out of bounds(0)'
登录后显示主窗口.可主窗口不能正常显示
涉及代码:
//显示当前的系统时间
procedure TMain_Form.Timer1Timer(Sender:TObject);
begin
StatusBar1.Panels.Items[0].Text:='当前时间:'+TimeToStr(now);
end;
单步执行到这,就蹦出那个错了,索引也没过界阿,到底怎么回事啊,具体怎么改啊!
我都改了好长时间了.望高手给予指导!
我用delphi编程序,编译没错误,一运行就蹦出了
'list index out of bounds(0)'
登录后显示主窗口.可主窗口不能正常显示
涉及代码:
//显示当前的系统时间
procedure TMain_Form.Timer1Timer(Sender:TObject);
begin
StatusBar1.Panels.Items[0].Text:='当前时间:'+TimeToStr(now);
end;
单步执行到这,就蹦出那个错了,索引也没过界阿,到底怎么回事啊,具体怎么改啊!
我都改了好长时间了.望高手给予指导!
因为你的StatusBar1没有建立新的Panel,据体做法是,双击你的StatusBar1,弹出个小框框后,点击Add New(Ins)那个小按钮,新增加一个Panel出来就可以了.
'list index out of bounds(0)'怎么处理?
请问“list index out of bounds”是什么意思?
List index out of bounds什么意思?
List index out of bounds (-1)是什么意思
list index out of bounds是什么意思
开机出现list index out of bounds(2)怎么回事?
装系统时list index out of bounds(-1)是什么意思
开机弹出窗口List index out of bounds (2)怎么解决?
关于开机运行软件显示list index out of bounds(1)
为什么在开机时会出现list index out of bounds(-1)
在看格式为mkv的动画时,有时会弹出"list index out of bounds"
List index out of bound (0) 是怎么回事情