Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I sound the bell on error?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00127863
Message ID:
00127889
Views:
34
>>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)

Also, if you want to play a WAV file instead of the standard beep, check out SET BELL.
"It is an important and popular fact that things are not always what they seem. For instance, on the planet Earth, man had always assumed that he was more intelligent than dolphins because he had achieved so much -- the wheel, New York, wars and so on -- whilst all the dolphins had ever done was muck about in the water having a good time. But conversely, the dolphins had always believed that they were far more intelligent than man -- for precisely the same reasons." - Douglas Adams
Previous
Reply
Map
View

Click here to load this message in the networking platform