Vote UpVote

The Delphi MESSAGE directive: don’t forget quotes!

The Wiert Corner – The Delphi MESSAGE directive is a very powerful one, you can generate compiler hints, warnings and errors with it, even fatal ones that abort compilation. The compiler will return error codes H1054 (hint), W1054 (warning), E1054 (error) or F1054 (fatal error), which in the documentation are known under the catch-all x1054. You need to take a bit of care with message directives, especially with the quotes. For instance {$Message Error 'Not implemented'} gives you the error below, but continues compiling: [DCC Error] E1054 Not implemented However, if you forget the single quotes {$Message Error ...
Favorite? Off-Topic? jpluimers @ 2014-10-15 07:00


Visits: 960
Votes: 2
Favorites: 1
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Jørn E. Angeltveit
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)