_______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Agreed. This is the same situation as with string-to-number conversion:
StrToFloat fires an exception if the string is not a valid float, but
there's also a "TryStrToFloat" which by-passes the exception and just
returns a false in case of an error. Why not having something like a
"TryGet" which returns true only if the file is successfully downloaded
and false in all other cases (HTTP error, or no connection)?
- [fpc-devel] Avoid exception if FPHTTPClient ca... Werner Pamler
- Re: [fpc-devel] Avoid exception if FPHTTP... Karoly Balogh (Charlie/SGR)
- Re: [fpc-devel] Avoid exception if FP... Werner Pamler
- Re: [fpc-devel] Avoid exception i... Michael Van Canneyt
- Re: [fpc-devel] Avoid exception if FPHTTP... Michael Van Canneyt
