Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement