Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with .wav file
Message
De
12/07/2002 09:31:08
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
12/07/2002 09:27:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00677972
Message ID:
00677975
Vues:
27
>I'm trying to modify the bell sound by using the command:
>
>set bell to "error.wav"
>
>I am using this in a form if there is an error in a specific field.
>
>If I run the form from the project manager, it works fine.
>
>I have a menu where a menu item is the command
>"do form process"
>If I run the menu from the project manager, then select the form from the menu, the form works fine.
>
>I Have a start program that sets a number of parameters and logs the user in. If I run that program to put the menu up on the screen, then access the form from the menu, the bell sound is the default, not my wave file.
>
>Near the end of my startup program I run my login form. If login is successful, I do a read events. I put the bell sound just before the read events, and it will work fine. Once the read events has processed, the .wav file no longer works.
>
>To ring the bell, I am using
>
>set bell to "error.wav"
>set bell on
>?? chr(7)
>set bell to
>
>Any thoughts to what might be happening.

Insert some error-checking, whether the file is found. Perhaps the current directory, or the path, changes somewhere.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform