Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lost Class
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00154323
Message ID:
00154409
Views:
20
>I have a program that defines two classes. I run the program, then try to create an object based on the second class. Sometimes it works fine, but more often it tells me it can't find the class. I don't see anything different between what I do when it works and when it doesn't work. I've never had any trouble with the first class.
>
>I tried commenting out the first class so all the program did was define the second class. That didn't help. The program runs with no errors.
>
>Any idea what I could be doing wrong?
>
>Thanks,
>
>-Michelle

Michelle,

In the form's load event put this code;

SET PROCEDURE TO Make_class.prg ADDITIVE

Do not DO the PRG as that does nothing. Once you have the PRG open as a procedure file VFP will be able to find the class definitions in it.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform