Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I sound the bell on error?
Message
From
19/08/1998 11:03:35
 
 
To
19/08/1998 02:12:52
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00127863
Message ID:
00128133
Views:
32
>>>>I am developing a custom textbox sub-class. I am monitoring each keystroke in the keypress event. Some keystrokes are obvious errors and I want to sound the "bell" when those keys are pressed rather than accept them. I specify NODEFAULT on those keystrokes and so I therefore do not accept them, but I want the user to be aware so that is why I want to sound the "bell". The users only look up when they hear a "bell". I cannot find a way to make the bell sound.
>>>>
>>>>Can anyone help me?
>>>
>>>??CHR(7)
>>
>>Fred,
>>
>>I use that successfully in Foxpro 2.0 even when it is running in a DOS window under Windows 95, but in Visual Foxpro running under Windows 95, CHR(7) only produces an almost inaudible tick sound. I want the old fashioned beep sound that I grew to know and love in DOS. I know that I can SET BELL TO a .wav file, but .wav files are not played through the tiny on board speaker. You have to buy a sound card to play a .wav file.
>>
>>Any other ideas?
>
>
>Actualy, You can play wav files through the speaker and dont have to buy a suond card. All you need is ''speaker.drv"


Angel,

That sounds like a good idea. Where can I get "speaker.drv"?

Sam
Previous
Reply
Map
View

Click here to load this message in the networking platform