Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set bell to not playing a wav file
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00161463
Message ID:
00163368
Views:
21
Tim,

>not sure how to implement. Do I put that text into a function and call it.?

You just have to DECLARE it once before trying to use it, then you can call it just like any builtin function or UDF.
declare integer sndPlaySound in winmm.dll string cSoundName, integer uFlags

sndPlaySound( "C:\WINDOWS\MEDIA\The Microsoft Sound.wav", 17 ) && asynchronous

for i = 1 to 100
   ?? str(i), "See I'm processing while the sound plays melodically in the background "
endfor

sndPlaySound( "C:\WINDOWS\MEDIA\The Microsoft Sound.wav", 16 ) && delay till finished
? "I don't execute until the sound is done"
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform