Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set bell to not playing a wav file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00161463
Message ID:
00163368
Vues:
14
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform