>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)