Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lost Class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00154323
Message ID:
00154410
Vues:
22
>>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
Fil
Voir

Click here to load this message in the networking platform