Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question/problem with a form class
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Question/problem with a form class
Miscellaneous
Thread ID:
00800149
Message ID:
00800149
Views:
53
Here is a simplified description of the problem:

A project has a class in a class library. E.g. MYCLASSLIB.VCX and class CUSTOMER_FILE which is based on VFP form. The CUSTFILE class/form has a bunch of buttons. One of the button is PROCESS where the code in Click() method is something like:
if _SOME_CONDITION
   do proc1
else 
   do proc2
endif
I created a new class library (CUSTCLASSLIB.VCX) where I added a class/form SPECIAL_FILE based on class CUSTOMER_FILE. I excluded CUSTCLASSLIB from the project.

At run time, the application instantiates/loads form SPECIAL_FILE (since CUSTCLASSLIB.VCX/VCT is stored on the drive with the app). So far all works well.

But when I click on PROCESS button and _SOME_CONDITION points to PROC1 it works. But when _SOME_CONDITION points to PROC2, I get error "no file PROC2.FRX" Note that both PROC1.PRG and PROC2.PRG are included in the project.

Any suggestions/ideas why I am getting this error message?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform