Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Play a WAV
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00710023
Message ID:
00710236
Vues:
18
Jim,

I agree closer with the response from Ramon Jaquez, but I have used a slightly simpler dll call...

declare integer sndPlaySound in WINMM.dll;
STRING lcWaveFile,;
INTEGER lnFlag

lcWaveFile = "c:\WinNT\Media\Chimes.wav" && or whatever..
=sndPlaySound( lcWaveFile, 17 )


The reason I avoided the SET BELL TO was for screen / printer impact...
??? sends char to printer... which may have issues with buffer / non-printable characters messing up next print job.

?? will print a blank char in the current form which can(will) overwrite a letter, textbox, or other control -- requiring repainting the form.

? is even worse than ?? as it forces a scroll-up as simulating a CR/LF on the form and would require a repaint yet again.

The API call has no scrolling and is quick and simple.

Don
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform