>>>>>>>>>>>*** 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).
If I do that, then do I need to code my methods and properties also
in the define statement?