Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I run a test .PRG, but call a class into the test
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00382681
Message ID:
00382683
Views:
17
In your PRG just put Set ClassLib To stevesclass Additive. Obviously change the class library (VCX) name and put it before the form call that requires it.

>I have a project in a project window. The .PRG is the main program that runs my forms. I have a single class that is used by one of the forms. When I run my .PRG I can test my forms, but since the class is not there, I get a so-so test. When I compile (BUILD a .EXE) the .PRG and forms and class into a .EXE. The test runs as expected.
>
>How can I include the class in the tests without compiling the whole project first? Can I add it to the .PRG file or what? I am sure this is simple, but I never tried it.
>
>Thanks for the information.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform