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



PeterV wrote:
It appears to not provide a return value. I could do an If fileexists() afterwards, but a return value would be more elegant.

If it doesn't work, then an exception will occur. The very fact the the function returns at all is the indication that it worked.


--
Rob
.



Relevant Pages