In delphi heb je de beschikking over verschillende switches in de code die invloed uit kunnen oefenen op het compileer/build process. Bijvoorbeeld een Waarschuwing geven tijdens het compileren als een bepaalde functie niet meer gebruikt dient te worden.
Het betreffende bericht zou dan in de To-do lijst (van Visual Studio.NET) moeten komen.
Bestaat zoiets ook in Visual Basic.NET?The Delphi message directive allows source code to emit hints, warnings, and errors just as the compiler does. This is similar to #emit or pragma warn in C and C++.
The message type (HINT, WARN, ERROR, or FATAL) is optional. If no message type is indicated, the default is HINT. The text string is required and must be enclosed in single quotes.
Examples:code:
1 2 3 4 5 6{$MESSAGE 'Boo!'} emits a hint {$Message Hint 'Feed the cats'} emits a hint {$messaGe Warn 'Looks like rain.'} emits a warning {$Message Error 'Not implemented'} emits an error, continues compiling {$Message Fatal 'Bang. Yer dead.'} emits an error, terminates compiler
Het betreffende bericht zou dan in de To-do lijst (van Visual Studio.NET) moeten komen.
[ Voor 9% gewijzigd door Verwijderd op 12-06-2004 17:17 ]