Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Define Class in Methode and events ???
Message
 
To
27/03/1997 20:49:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00025966
Message ID:
00026014
Views:
31
>>Hey Guys,
>>
>> I Try to use the DEFINE CLASS commande to subclass something in the Method of a object and it doesn't work
>>
>>Do you Have some Hits ?
>>
>>Rocky Boy...
>
>As far as I tested, DEFINE CLASS is executed when load the file. This command is treated different from other Fox commands and you can't have it into a procedure/function/method.
>
>BTW, any Fox code following a DEFINE CLASS ... ENDDEFINE in a prg is ignored.
>
>Vlad

Thank's Guys

But it's Very bad Because it force him to coding class definition in the "prg" file instead of in the object. And I was thinking that when we use a object oriented language all the coding can be in a object and we can create a object(Class definition and instance) as fast and easly as a variable. I know that it's possible to work arrond with this, but it's bad anyway; Specialy when you want use a object for a parameter; you can't create it when you want and wan you need.

Ok It's enought for language beaching ... Bye

Thank's Again

Rocky Boy...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform