Information générale
Catégorie:
Codage, syntaxe et commandes
> 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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement