Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50-Appllication Object
Message
De
24/02/1997 14:05:20
 
 
À
24/02/1997 13:54:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Groupes d'usagers
Divers
Thread ID:
00021768
Message ID:
00021832
Vues:
62
>>>>>>>>>>*** start.prg
>>>>>>>>>>oApp=createobject('app')
>>>>>>>>>>
>>>>>>>>>>Define class app as custom
>>>>>>>>>> .msgtitle="System Error"
>>>>>>>>>>enddefine
>>>>>>>>>>
>>
>>>I see...After I CREATEOBJECT, everything is loaded... OK...now I use my
>>>program talents to make calls(methods,properties), etc...
>>>
>>>In my main.prg, I...
>>>oapp= CREATEOBJECT("app")
>>>
>>>I get back an error message saying..
>>>"Class definition 'app' is not found"
>>>
>>>I made a custom class called "app".
>>>what happen...
>>>
>>>Rob
>>
>>See the example above (I posted it already): use DEFINE CLASS in the same main.prg to create a class!
>
>Hi Ed...
>Does this mean I can not have a custom class define in my
>classlib?
>
>Rob

No. It just means that is more convenient to put it in code (at the end of main.prg as recommended by MS). But you can have classlib too and this case you should follow Dave's advices how to SET CLASSLIB TO (before CREATEOBJECT).
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform