System.Beep

From Xojo Documentation

Method

System.Beep()

New in 2019r2

Supported for all project types and targets.

Plays the default system alert sound.

Usage

Beep

Notes

The Beep method plays the default Beep sound selected on your computer.

Sample Code

This code beeps if an error occurs:

Var isError As Boolean = True
If isError Then
System.Beep
End If