Re: how can I tell if a tstringlist.savetofile has worked?



"PeterV" <verstapp@xxxxxxxxxxxxxxx> schreef in bericht
news:4297de28$1@xxxxxxxxxxxxxxxxxxxxxxxx
> It appears to not provide a return value. I could do an If fileexists()
> afterwards, but a return value would be more elegant.
>
>
>

try
myStringlist.SaveToFile(anyFile);
except
// handle the exception - the save has failed
end;

Tom


.



Relevant Pages