---
url: /flow/guide/scripting-reference/functions/logging/messageinfo.md
---

# MessageInfo

## Declaration

`Procedure MessageInfo( AMessage : string; HelpID : LongInt)`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := MessageInfo('This is a message',0);
end;
```

## Description

Displays an informational message to the user. HelpId should always be set to 0

How this message is displayed depends on what application is executing the script. If executed under Flow this message will show to screen - the user needs to click OK to the message to continue processing. If executed under FlowService the message will be written to the Windows Event Viewer.
