Many thanks Boris
>>Sorry, text box and combo boxes in a container
>>
>>
>>>>Can anyone point me in the right direction?
>>>>
>>>>I need to programmatically add some fields to a container?
>>>>
>>>>Many thanks
>>>
>>>Fields in Container?
>>>You mean Fields in Table
>>>or
>>>TextBox in Container?
>
>
>WITH thisform.ContainerName
> .AddObject([TextBox1], [TextBox])
> WITH .TextBox1
> .Left = ???
> .Top = ???
> .ControlSource = [????]
> .Value = ????
> .Visible = .t.
> ENDWITH
> .AddObject([ComboBox1], [ComboBox])
> WITH .TextBox1
> .Left = ???
> .Top = ???
> .Style = ???
> .ColumnCount = ??
> .BoundColumn = ??
> .BoundTo = ??
> .ControlSource = [????]
> .Value = ????
> .Visible = .t.
> ENDWITH
>ENDWITH
>
>
>You could set ALL properties you need BUT don't forget to set VISIBLE = .t.
>By default all objects added programaticaly are invisible.
Rob