[Overview][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'HelpIntfs' (#lcl)

# THelpQueryMessage

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

## Declaration

Source position: helpintfs.pas line 171

`type THelpQueryMessage = class(THelpQuery)`
`public`
`constructor Create();` |  | Constructor for the class instance.
`destructor Destroy; override;` |  | Destructor for the class instance.
`property WholeMessage: string; [rw]` |  |
`property MessageParts: TStrings; [rw]` |  |
`end;`

## Inheritance

`THelpQueryMessage` |  |
`THelpQuery` |  |
`TPersistent`
?
`TObject`

## Description

THelpQueryMessage is a THelpQuery descendant which contains a query for messages, like the compiler warnings and errors.

WholeMessage is a string with the complete message.

MessageParts contains Name/Value pairs prepared by the IDE. Common names and values in the property include:

Stage
  Indicates what part of the build process the message belongs to. Common values are 'FPC', 'Linker' or 'make'.
Type
  For FPC: 'Hint', 'Note', 'Warning', 'Error', 'Fatal', 'Panic', 'Compiling', 'Assembling', For make: ?. For Linker: ?.
Line
  An integer with the line number as given by FPC (in brackets).
Column
  An integer with the column number as given by FPC (in brackets).
Message
  The message text without other parsed items.

Example:

Message written by FPC:

    unit1.pas(21,3) Warning: unit buttons not used

Results in:

    Stage=FPC
    Type=Warning
    Line=21
    Column=3
    Message=unit buttons not used