Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control array
Message
 
 
À
27/04/1998 14:41:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00095209
Message ID:
00095224
Vues:
24
Kenneth

In VFP objects within a container must each have unique names. You can add the number of the control in your loop to the name to make it unique.
for i = 1 to 3
   this.AddObject( "Label" + padl( i, 2, '0' ), "label" )
endfor


>
>How can i create controls with the same name?
>In VB this is done automatically, just copy the control
>and then paste it on the same form, however this is not
>allowed in VFP and i can't find a method to do the similar
>thing.
>If this can be found in the Help, please tell me coz i've
>already read it many times but still cant find it.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform