Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What to show the user while COM Server objects are runni
Message
De
08/09/1999 10:47:43
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00261950
Message ID:
00262408
Vues:
13
>Doug,
>
>That is a great idea but ??? how do I do that.... Once you call a DCOM Object and it goes into a loop how do you send back a value
>

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

*****************
BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform