Glad to hear that.
>Removeobject did the trick fine.
>
>Regards,
>Gerard
>
>>Did you try RemoveObject()?
>>
>>>I have a form where I create buttons using CreatObject
>>>How do I remove the buttons programatically (They are all called 'BUT_nnn'
>>>e.g.
>>>
>>>For lnFor = 1 to Count
>>> If Button ('BUT_' + Strtran(Str(Count),' ','0') Exists
>>> Remove(MyButton)
>>> Endif
>>>Endif
>>>
>>>Any help appreciated
>>>Gerard
--sb--