Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SET BELL Command
Collapse the table of content
Expand the table of content

SET BELL Command

Visual Studio .NET 2003

Turns the computer bell on or off and sets the bell attributes.

SET BELL ON | OFF
-or-
SET BELL TO [cWAVFileName]

Parameters

ON
(Default) Turns the bell on.
OFF
Turns the bell off.
TO cWAVFileName
Specifies a waveform sound to play when the bell is rung. cWAVFileName can include a path to the waveform sound.

Issue SET BELL TO without cWAVFileName to restore the default waveform sound.

Remarks

SET BELL enables or disables the sounding of the bell during editing when you reach the end of a field or enter invalid data.

Example

In the following example, the waveform sound file Ding.wav is played.

SET BELL TO 'C:\WINDOWS\DING.WAV'
?? CHR(7)

See Also

SOUNDEX( ) Function | Sound Player

Show:
© 2015 Microsoft