Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I sound the bell on error?
Message
 
 
À
18/08/1998 16:51:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00127863
Message ID:
00127904
Vues:
23
>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?

How about:
procedure beep_beep
*
* nBeep =  0 default sound (no icon w.r.t. MessageBox)
*         16 critical stop (stop sign)
*         32 question      (question mark)
         48 exclamation   (exclamation point)
*         64 asterisk      (information symbol)
*
parameter nBeep
declare integer MessageBeep in Win32API ;
   Integer nBeep
=MessageBeep(nBeep)
return
Don't know if you need a sound card for this. I don't have a *soundless* machine to test on anymore. If it works on a machine with only the standard internal speaker, please let me [us] know. TIA and HTH.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform