-> I am building a program in VFP 3.0 and I am using a timer in this
-> program. I want the program to play music (.wav file) in certain
-> time during the running of the program. does any body here know how
-> I can
Not specifically, but i would suggest you investigate OOE and DDE
interchange. You will probably have to write a routine to send commands
outside of foxpro and to the .wav player. (i doubt there was ever a
reason to play .wav files in FoxPro's native environment)
As for timing, you can either repeatedly query TIME() (which you'd have
to parse into something more mathmatically usable than 00:00:00
character format) or set a counter to record the number of records
processed and when the counter exceeds X number, DO the procedure to
play the .wav (FYI, different CPU speeds will change the ratio of
records processed to "real time" so consider the length of the .wav
score)
--- PCBoard (R) v15.3 (OS/2) 5
---------------
* Origin: Yardley, PA (1:273/239)
|