Information générale
Catégorie:
Programmation Orientée Object
Where would I insert that? It doesn't work if I put it as the first line in SECOND.PRG, and if I put it in Def.Init() it is too late.
>Try SET PROCEDURE TO First.prg
>
>>I'm trying to use .PRG's to store my class definitions, and I'm having a bit of a problem.
>>
>>I created a base class named "Abc" and put it in a program named FIRST.PRG:
>>
>>DEFINE CLASS Abc AS CUSTOM
>> FUNCTION Test1()
>> RETURN "Abc.Test1()"
>> ENDFUNC
>>ENDDEFINE
>>
>>Then I created a second program SECOND.PRG:
>>
>>DEFINE CLASS Def AS Abc
>>ENDDEFINE
>>
>>Now how can I get the second class to know that the parent class Abc exists?
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