>>>>>CLASS is Read-Only property :((( So, this technique would not work, and I still have to hack :(
>>>>
>>>>Right, so you would have to form.addobject() a corresponding object of your own, copy all the non-default properties from your selected object, delete the original object (remember to release the reference to it, if any) and rename the new object to the name of the old object.
>>>
>>>I probably would stick with my old approach :) I've half way done with the item 1 :)
>>
>>As one of my old friends once said:
>>
>> "There are two kinds of lazy programmers: the first kind is too lazy to automate anything, so they'd rather type the same 200 char command sequence over and over; the second kind reacts whenever they have to do anything more than three times - they automate the task, even if it takes three days to do and gets used only once".
>
>Does AddObject (NewObject) work in design-time?
This is what it takes to try:
MODIFY FORM test
=ASELOBJ(aa,1)
aa[1].addobject("txt","textbox")
>I guess, I'm getting old, because I found myself in the first category couple of times...
...and I'm then way too old, because I'm in the second category for some fifteen years :).