Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ProgressBar
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00119813
Message ID:
00120143
Views:
23
> 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
Previous
Reply
Map
View

Click here to load this message in the networking platform