Re: how can I tell if a tstringlist.savetofile has worked?
- From: Dirk Claessens <will.bounce@invalid>
- Date: Sat, 28 May 2005 14:29:50 GMT
Verily, on za 28 mei 2005 04:57:45a, PeterV wrote in
comp.lang.pascal.delphi.misc
[news:4297de28$1@xxxxxxxxxxxxxxxxxxxxx]:
> 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( AFileName );
ShowMessage('It Worked!);
except
ShowMessage( 'Damn!:' + SysErrorMessage(GetLastError) );
end
--
Dirk.
No trees were killed in the creation of this message;
however, many electrons were terribly inconvenienced.
http://users.pandora.be/dirk.claessens2
.
- References:
- Prev by Date: Re: Delphi 2005 executes slower?
- Next by Date: Re: Farsi text in drawing and text editor
- Previous by thread: Re: how can I tell if a tstringlist.savetofile has worked?
- Index(es):
Relevant Pages
|
|