Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make a sound
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01138013
Message ID:
01138206
Vues:
12
Cool!
>>What is a simple way of creating two different sounds that will represent good and bad entry?
>>
>>Thanks
>
>
FUNCTION Beep
>LPARAMETERS nFrequency, nDuration
>
>  IF EMPTY(nFrequency)
>    nFrequency = 1000
>  ENDIF
>
>  IF EMPTY(nDuration)
>    nDuration = 40
>  ENDIF
>
>  DECLARE Beep IN Win32API INTEGER dwFreq, INTEGER dwDuration
>
>  =Beep(nFrequency, nDuration)
>
>RETURN
>
>or
>Just for joke:)
>
>
>loSpeak = CREATEOBJECT("SAPI.SPVoice")
>loSpeak.Speak("beep")
>
>
>or
>
>Set Bell to "c:\windows\media\chimes.wav"
>?? Chr(7)
>Set bell to && restore default beep
>
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform