V
vfphome
Unregistered / Unconfirmed
GUEST, unregistred user!
我用以下代码:
[blue]
var x:Extended;
y:integer;
begin
try
y:=0;
X := 12/y;
Edit1.text:=tostr(x);
except
on EZeroDivide do
edit1.Text:='ddddd';
end;
end;
[/blue]
为什么还会出现错误窗口:
[red]
Project project1.exe raised exception class EZeroDivide with message '浮点指针被0除'. Process stopped Use Stop or Run to countion.
[/red]
怎样把此错误窗口不显示。直接调用 on EZeroDivide do
下面的语句呢?
请高人指点....?
[blue]
var x:Extended;
y:integer;
begin
try
y:=0;
X := 12/y;
Edit1.text:=tostr(x);
except
on EZeroDivide do
edit1.Text:='ddddd';
end;
end;
[/blue]
为什么还会出现错误窗口:
[red]
Project project1.exe raised exception class EZeroDivide with message '浮点指针被0除'. Process stopped Use Stop or Run to countion.
[/red]
怎样把此错误窗口不显示。直接调用 on EZeroDivide do
下面的语句呢?
请高人指点....?