Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class ProgressIndicator FAW
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01019151
Message ID:
01019394
Views:
26
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...
Previous
Reply
Map
View

Click here to load this message in the networking platform