Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control Arrays
Message
De
18/07/2001 12:02:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
18/07/2001 10:42:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00530471
Message ID:
00532064
Vues:
13
>The problem is you can't specify an element of a control array using .AddObject
>Right?
>
>
>this.AddObject( "text123", "textbox" )
>with this.text123
> .Top = 50
> .Left = 200
> .Visible = .t.
>endwith

Try adapting this:
for i = 1 to 10
  ThisForm.AddObject("ThisForm.aMyObjects(i)", "TextBox")
  with ThisForm.aMyObjects(i)
    .Top = i * 30
    .Left = 200
    .Visible = .T.
  endwith
next
Regards, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform