Information générale
Catégorie:
Codage, syntaxe et commandes
>How do I can get the list of all object on a form including Page in pageframe and column in Grid in my program? Is there a command to do that?
There is probably a much better way, but you could look at the txtbtns class in WIZSTYLE.VCX. It has a method .setallprop which loops through the controls on a form in order to set properties. It calls itself recursively when it sees a container. It actually doesn't handle grids or pageframes that way, but you could make some similar code which would use .pagecount or .columncount instead of .controlcount.
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