Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What to show the user while COM Server objects are runni
Message
From
08/09/1999 12:38:37
 
 
To
08/09/1999 10:47:43
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00261950
Message ID:
00262451
Views:
18
This will work, as long as the loProgress object has a method named Update(). It introduce thight coupling between the objects because each object need to know something about the other.

>Pass an object reference to your common progress bar dialog so that it can control it via com....
>
>MyUIProcedure()
>
>local loDCOMEClass,loProgress
>
>loDCOMClass = createobj('myOLEServer.MyClass')
>
>loProgress = createobj('ProgressBar','Running the process',0,100)
>
>loDCOMClass.DoThing( loProgress )
>
>return
>
>************
>Then, your automation would be like...
>
>Function DoThing
>
>lparam loProgress
>
>do while ThisNeedsToBeRunning
>
>*** Lots of code here *****
>
>** Update Progress Bar ****
>
>loProgress.Update( 'Running this process', nIteration, nTotal )
>
>enddo
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform