Information générale
Catégorie:
The Mere Mortals Framework
> Is my only alternative to put the code in my bizobj? I really don't want to put code that references a form (even if it is only a progress bar) in my bizobj since I know that this bizobj will eventually be instantiated w/o the form (i.e. I need it to function as a "real" 2nd tier object).
Hmmm... Not sure how to handle this... or what your BizObj is doing. Also, I don't think VFP is multi-threaded... but, when you do move to using the object as a COM object, perhaps you can set up a properties that return the amount completed... so you could do...
function thisform.whatever.click
oTheComObject = createobjectex('MyBizObj','MyDll',servername)
oTheComObject.dothething()
do while ! oTheComObject.Done
* call progress bar here
msgsvc(whatever,oTheComObject.Total,oTheComObject.NumProcessed)
enddo
Well... I am not sure if the above will work... It assumes that if you call a method in a com object the code will continue running and not wait for the COM object to finish. Almost like an asyncronous ADO call.
Anyway.. let me know what you find out. We are planning to deploy n-Tier with CBMM and I can use all the info we can get. Sounds like you are ahead of us.. we are doing analysis and design right now.
BOb
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