Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Define Class in Methode and events ???
Message
From
28/03/1997 08:57:16
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00025966
Message ID:
00026021
Views:
32
> 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. you are mixing several concepts visual programming (which is in-complete in VFP) and OO (which is rather good in VFP) creating classes in code using DEFINE doesn't make it less OO you can still use CREATEOBJECT to instantiate it and reference it like any other object note that you can also create classes in .vcx files "manually" e.g. column or page etc. Arnon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform