下面的代码如果发生错误,我要怎么跳过,不继续执行?If (ButtonImageListbox.Items.Count > 0) And (ButtonImageListbox.Selected.Indent > 0) Then
begin
ButtonImageListbox.Items[ListPlayId].ImageIndex:=0;
ButtonImageListbox.Items[ButtonImageListbox.Selected.Index].ImageIndex:=1;
End;
begin
ButtonImageListbox.Items[ListPlayId].ImageIndex:=0;
ButtonImageListbox.Items[ButtonImageListbox.Selected.Index].ImageIndex:=1;
End;
解决方案 »
- dbgrideh显示总分明细的问题!
- Delphi下控件IDFtp如何创建多级目录?
- 打印 FindFirstPrinterChangeNotification 问题
- !!!!!!!!!!!!!!!急@在线等答案 如何删除选定的DBGrid记录(不用导航控件)
- 大家好,问个简单的问题,Canvas.textOut 到label上时,怎么保持不被刷新?
- 读文件进数据库
- 谁能教我制作DELPHI的安装程序。教材也行。
- WIN XP是不是和DELPHI不兼容啊。总是出现什么‘NTDLL.DLL’的错误。这是咋回事呀?
- 如何删除数据库中的字段(用delphi)
- 这里真的有Delphi高手吗?我可没有遇到!!!!
- Fastreport问题我该如何打印!
- 怎样测试针式打印机的断针?
If (ButtonImageListbox.Items.Count > 0) And (ButtonImageListbox.Selected.Indent > 0) Then
begin
ButtonImageListbox.Items[ListPlayId].ImageIndex:=0;
ButtonImageListbox.Items[ButtonImageListbox.Selected.Index].ImageIndex:=1;
End;
except
showmessage('出错了');
end;
begin
try
If (ButtonImageListbox.Items.Count > 0) And (ButtonImageListbox.Selected.Indent > 0) Then
begin
ButtonImageListbox.Items[ListPlayId].ImageIndex:=0;
frmMain.GUPlayer.Open(ButtonImageListbox.Items[ButtonImageListbox.Selected.Index].SubItems[1]);
ButtonImageListbox.Items[ButtonImageListbox.Selected.Index].ImageIndex:=1;
frmMain.GUPlayer.Play;
End;
except
showmessage('出错了');
end;