Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing controls from a form
Message
De
09/03/2021 09:29:57
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
09/03/2021 09:22:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01678811
Message ID:
01678827
Vues:
38
>In the example it is an object based on a class that implements the design pattern.
>I think more of his previous explanation, whenever you create/addobject not from a literal, but a variable, you have already "implemented" a factory pattern, even if the value of the variable is always the same. You could add an if or case clause changing the value and get the "factory" to createobject different items.
>
>In his example he/factory class wraps the act of setting of the string. base class might work by setting cClass value via case, subclass via table, other via hash string or array - so you might have a factory deciding which factory to use as object factory.
>
>
factory = createobject(m.lcSubtype + "_" m.lcFactoryType)
>
>;-)

So your factory depends on a naming convention?
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform