Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multitasking from VFP
Message
De
15/07/2004 22:04:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00924617
Message ID:
00924997
Vues:
22
Houston,

I think the light bulb finally went on.

Is this how it works? When you add jobs to the COM/EXE, it returns almost immediately because it isn't really doing anything except adding the job to the array. Yes, it kicks off the timer but the 2 lines:

This.tmrDoTheWork.Interval = 100
This.tmrDoTheWork.Enabled = .T.

do not cause any delay because that's just the way timers work, i.e. they get kicked off and work in the background.

So we submit the job, leave the timer to do the crunching and immediately return to the calling process.

That's got to be right. Please tell me that's right. If it is, that's SLICK!

Assuming that is right, could I have the timer set the value of a property of the COM/EXE object, to False when it starts the job and True when it finishes, then I could check the value of that property in the calling process to determine if it is finished? Something like that maybe?

Thanks,
John
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform