General information
Category:
Coding, syntax & commands
> 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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only