Beep

Use this procedure to tell the system to emit a warning, message, or error sound. The sound emitted depends on the installed options of the operating system that executes the system. There is no return value from this procedure.

Syntax

Beep (Integer)

Parameter

Description

Integer

Choose from these options:

0 - Warning sound
1 - Message sound
2 - Error sound

The default is two (2).

This procedure emits the sound specified by the parameter.

Example

Here are some examples:

Procedure

Result

Explanation

Beep ( )

Emits error sound.

Defaults to 2.

Beep (0)

Emits warning sound.

The operating system emits the installed option for the warning sound.

See also