Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Beep sound in Windows 2000

Status
Not open for further replies.

TerryLang

Programmer
Feb 15, 2001
5
GB
I am running FPW 2.6a under Windows 2000. I have many programs that, when run under Windows 98, emit a warning beep as an alert using
? CHR(7)
When the same EXEs are run under Windows 2000, they do not emit the warning beep when they should. Does anyone know how to fix either the PRGs or Windows 2000 to make this work, please?
 
Unless I'm wrong, newer computers doesn't even come with a miniature built-in speaker, so that may be part of the problem. If those silent computers don't have those separate speakers, might it be that FoxPro doesn't send the beep to the sound card?

Also, check that CONFIG.PW includes at least the first one of these statements. The second one may change the bell and the behavior of typing going into the next field on an entry screen.

BELL = ON
CONFIRM = ON

Of course, if inside the program there are command SET BELL OFF or SET CONFIRM OFF, then the changes to CONFIG.FP will be changed inside the program.

dbMark
 
How odd. In VFP 6, 7, 8 & 9 CHR(7) plays the WAV file which I've set as "Default Beep" in Control Panel. In FPW 26 CHR(7) does nothing.

But if I set the bell to be a Wav file in FPW26:
Code:
set bell to "c:\Windows\Media\chord.wav", 1

Then ??Chr(7) does play that sound.

Don't forget that SET BELL needs two parameters. The second is supposed to be the duration but it's ignored - really ignored, it doesn't even need to be numeric.

Geoff Franklin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top