Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ActiveX and Timer controls doing battle?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
ActiveX and Timer controls doing battle?
Divers
Thread ID:
00522165
Message ID:
00522165
Vues:
42
I have an ActiveX control for faxing records out of a table. I also have a timer control on the same form for scanning the table for records that need faxing.

VFP code in Timer event of Timer1 -

SELECT faxrectable
SCAN && Process one record at a time and send it to its destination.
&& A bunch of lines of code here that build a fax file (this all works)
THISFORM.FaxManJr1.SendFax
ENDSCAN

Is there another way to do this? If I remove the SCAN...ENDSCAN, SendFax works great. If I leave SCAN...ENDSCAN in the Timer1 the looping continues before SendFax can finish what it is doing and then that causes an error. It doesn't help to put THISFORM.Timer1.Enabled = .F. because SendFax is within the Timer1 and I think then SendFax stops doing its thing.

If I put the THISFORM.FaxManJr1.SendFax outside the Timer code, then everything seems to work as it should, but then I am wondering how I should keep looping through my table to find records that have not been faxed or should be refaxed due to errors in faxing?

Got any ideas? I am pulling my hairs out, one by one. But I need a haircut anyway so it's OK.
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform