>>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.
Nancy beat you to it. :)
But, thanks for responding.
-Michelle
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only