Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp50-Appllication Object
Message
From
24/02/1997 15:17:29
 
 
To
24/02/1997 14:05:20
General information
Forum:
Visual FoxPro
Category:
User groups
Miscellaneous
Thread ID:
00021768
Message ID:
00021843
Views:
63
>>>>>>>>>>>*** 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?
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform