On 23 Mar 97 Bart Broersma said to All...
BB> How do I trap EInOutError exceptions when I use the
BB> TMemo.Lines.LoadFromFile method ??
BB> Any suggestions here ? I need to be able to know wether the
BB> LoadFromFile or the SaveToFile has been succesfull.
Instead of trying to trap the exception, why not stop the problem before it
occurs ? i.e., check for the presence of the file.
In Delphi 1, that would be ...
if FileSearch(f1Name,'') = '' then { f1Name is name of file }
begin
{ handle problem of missing file }
end ;
--- PPoint 2.00
---------------
* Origin: Kingston, Canada (1:249/109.11)
|