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 12:38:37
 
 
À
08/09/1999 10:47:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00261950
Message ID:
00262451
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform