Information générale
Catégorie:
Codage, syntaxe et commandes
Hi Kenneth.
>While SetAll() can be used to change all properties, I sometimes want to run a method on all of my edit controls in a form. These controls can be in containers, grids or pages of a page frame so I only want to run the method for those objects having it - but I want to drill down into containers (that don't have the method.
The way I've implemented this is to create a property in all my base classes with an Assign method. Then, you can use Thisform.SetAll('PropertyName', Value) to fire the Assign method for all objects.
Doug
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