Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding cmdbuttons programatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01321009
Message ID:
01321011
Vues:
17
>I was playing around trying to add a whole bunch commandbuttons on a form I made in the designer but it executes and I see no commandbuttons. Are they invisible?
>
>FOR i = 1 TO 80
>c='cmd'+ALLTRIM(STR(i))
>thisform.AddObject(m.c,'commandbutton')
with evaluate('thisform.' + m.c)
   .visible = .t.
 && you also need to set top and left properties
endwith
>next
Yes, you need to explicitly set visible property to true. See changes inside.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform