>>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement