Press "Enter" to skip to content

How to Display Message in Oracle Forms?

In Oracle Forms, there are two ways to display a message. One is using MESSAGE() built-in and the second one is by using ALERTS in Oracle Forms. In this tutorial, you will learn how to display a message in Oracle Forms using MESSAGE and ALERTS.

Display Message in Oracle Forms Examples

1. Using Message command.

Syntax

Message(message_text);

Example

The MESSAGE built-in is used to display a message at status bar in Oracle Forms. The following example will show the message at the Status bar in Oracle Forms.

Begin
    Message('Hello World!');
End;

2. Using Show_Alert command for Window messages.

Syntax

N := Show_Alert(alert_name);

Example

ALERTS are used to display a message as a modal window in Oracle Forms. The following example will show the message you created for alert infoalert.

declare
n number;
begin
n := show_alert('infoalert');
end;

See also: