SET BELL TO Does Not Work with PC Speaker Driver

Last reviewed: June 27, 1995
Article ID: Q102736
The information in this article applies to:
  • Microsoft FoxPro for Windows, version 2.5

Issuing a SET BELL TO <frequency>,<duration> command produces only a clicking sound out of the PC's speaker if the PC Speaker driver has been loaded by using the Drivers icon in the Windows Control Panel.

For example, with the PC Speaker driver loaded on a machine, if you issue a SET BELL TO 1400,3 command and then a ?CHR(7), the results will be a series of clicks.

This is a limitation of the PC Speaker driver. Use either of the following methods to correct this problem:

If a multimedia driver is installed, use the command:

   SET BELL TO "myfave.snd",0

- or -

Run Control Panel, choose the Drivers icon, and remove the PC Speaker Driver. Then restart Windows and FoxPro for Windows. If you issue a SET BELL TO 1400,3 command and then a ?CHR(7), the results will now be a bell.

NOTE: The bell may also fail if the Set Console option is turned off. Be sure that Set Console is On.

The PC Speaker driver (SPEAK.EXE) is available on the Microsoft Download Service (MSDL). For more information on MSDL, query on "Q82006" in the Microsoft Knowledge Base without the quotation marks.


Additional reference words: FoxWin 2.50 speaker bell set
KBCategory: kbprg
KBSubcategory: FxprgGeneral


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.