Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp50-Appllication Object
Message
From
24/02/1997 14:05:20
 
 
To
24/02/1997 13:54:02
General information
Forum:
Visual FoxPro
Category:
User groups
Miscellaneous
Thread ID:
00021768
Message ID:
00021832
Views:
58
>>>>>>>>>>*** 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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform