Aye, good point and adendum, BB
And not to forget the (possibly better) function AddObject()
:-)
>Don't forget .Visible = .t.
>All programaticly added object comes with .Visible = .f. by default
>:o)
>
>>Agnes
>>
>>See Help on CreateObject().
>>
>>e.g.
>>
>>Thisform.oTextBox = CreateObject( "textBox")
>>With thisform.oTextBox
>> .Width = 100
>> .Left = 10
>> ... etc.
>>EndWith
>>
>>>HI all ,
>>>
>>>I would want to create programmatically a textbox.
>>>
>>>Tahnks
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.