**if label1 is ready to show error**
try
LoadFromFile(FileName);
except
on err1:exception1 do
label1.caption:='message1';
on err2:exception2 do
label1.caption:='message2';
end;
or******
try
LoadFromFile(FileName);
except
on err:exception do...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.