Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Play a WAV
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00710023
Message ID:
00710236
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform