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:
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?
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
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,
4 matches
Mail list logo