Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class ProgressIndicator FAW
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01019151
Message ID:
01019394
Vues:
27
Good morning Craig,

>I'm assuming from your code that you are using the progressbar as a class that is not compiled into a COM Server.

Correct.

Take that class (making sure it is OLEPublic still) and place it into a prg file in a seperate empty project. Then, compile your new project as a COM Server (EXE) in VFP. So, let's say your COM Server exe is named "progress.exe"... then you can instantiate it from your main application using loProgress = CreateObject("Progress.ProgressIndicator") - the code from your main application is little different than what you have now except for this change in how it gets instantiated.

That works great! Thanks for taking the time to explain this to my OOP-challenged brain (that still reverts to dBase and FP/DOS all to easily). One more technique added to my FoxToolBox.

That might make a good addendum to your FAQ.

Thanks!
Randy Bosma
VFP - Because life is too short to code in something else...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform