Information générale
Catégorie:
Codage, syntaxe et commandes
>>>Well, that was way to simple...
>>>on a PII 266 I only have to loop 35,000 times to space out the bells
>>>now I only have to make 3 variations to cover the customers 6 workstations
>>>2 PII 266, 3 200. and 1 166.
>>>Thanks I would have been there a few more days...
>>
>>?? chr(7)
>>t1= seconds() + m.wav_length && seconds length of wav file
>>do while seconds() < m.wav_length
>>enddo
>>* play next sound
>>* works on all machines
>
>
>Forgot to add, that in that loop, you can do lots of things, flash lights, doevents, run some queries...
>
>KT is right, you might wan't to consider some other approachs. My problem was fairly simple, just had to amuse the onlookers ( treasury officials in a $250,000 prize draw ) while I found a winner and make them think it was a complicated, big deal. :-) Horses for courses.
The other reason that I recommended using an API call as opposed to using
one of the VFP functions is that to the best of my knowledge there is no
native function that will get you resolution of better than 1 second except
for the timer (no flames please :)
Course, you could always use the timing loop "just for now and come back and
fix it later". yeah. right. :)
...kt
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement