Click or drag to resize

SetBeep Function

X#
Return and optionally change the setting that determines whether a beep is sounded by the error system when an error occurs.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax
 FUNCTION SetBeep() AS LOGIC
Request Example View Source

Return Value

Type: Logic
If lNewSetting is not specified, SetBeep() returns the current setting.
If lNewSetting is specified, the previous setting is returned.
Remarks
Examples
This example shuts off the error beep if it is on:
X#
1IF SetBeep()
2    MessageBeep(MB_OK)
3    SetBeep(FALSE)
4    ? "No more beeping on errors from now on!"
5ENDIF
See Also