Re: Set bell to anyfile.wav

2017-08-17 Thread AndyHC
This works for me: SET BELL TO ("C:\WINDOWS\MEDIA\ringout.WAV") ? SET("Bell",1) ?? CHR(7) ... but if your expression evaluates to an invalid dir the setting remains at the default. ___ Post Messages to: ProFox@leafe.com Subscription Maintenance:

Re: Set bell to anyfile.wav

2017-08-16 Thread Jan Bucek
Dne 16.8.2017 v 14:55 Wes Wilson napsal(a): set bell to anyfile.wav?? chr(7) does not work in vfp9 It does: * SET BELL TO FULLPATH("gong.wav")&& works * SET BELL TO "gong.wav"&& works SET BELL TO gong.wav&& does not work, awaiting char expression ?? CHR(7) any suggestions?

Re: Set bell to anyfile.wav

2017-08-16 Thread Ted Roche
On Wed, Aug 16, 2017 at 8:55 AM, Wes Wilson wrote: > set bell to anyfile.wav ?? chr(7) > does not work in vfp9 What have you tried? Is the sound volume on? Are the speakers plugged in? Is the file name in quotation marks? Does the file exist? Have you tried

RE: Set bell to anyfile.wav

2017-08-16 Thread Richard Kaye
Yeah. Dump the ?? and use the Windows API. (I think I found the API stuff on the news2news site a long time ago. Wouldn't want anyone here think I was smart enough to figure that out on my own.) The rest of it is just some defensive coding. FUNCTION playSound(m.soundFile AS Character,