Nice portable error/notification messages

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Nice portable error/notification messages

L505
What is the way to write nice error out, on any style of program?

I remember some function that gave errors properly no matter what style of program: GUI,
console, etc.

So on a console, the error message would be a writeln, but on a GUI program the error would
be a showmessage style error. All this handled automatically by the wrapper. Just can't put
my finger on where I saw this function and in which units.

i.e. It's time I stop using writeln calls for errors, because that just isn't the portable
way to do it.

In fact not just for abrupt and abnoxious errors, but simple polite notifications too.

--
L505
http://z505.com

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal