I thought AddObject is for vfp controls, newobj for my own so I can define a source for the objct
Otehr than tat they do the same thing, I thought
I just asked a simlar question where i addobject lines to an array property and they son't show either
Peter
>Peter,
>
>You must use AddObject() not NewObject() for this sort of runtime object. An object needs to be in the containership hierarchy of a form in order to be a visibile entity and participate in the event loop.
>
>>i want to add objects on the fly at runtime
>>this code:
>>
>>THIS.PARENT.REMOVEOBJECT("cntTask")
>>THISFORM.pgf1.page2.NEWOBJECT("cntTask","cntTasks_general","modules\vcmc.vcx",THISFORM.business.DATA.mainidValue)
>>WITH THISFORM.pgf1.page2.cntTask
>> .LEFT=0
>> .TOP= 216
>> .VISIBLE=.T.
>>ENDWITH
>>
>>
>>
>>does not make it visible.
>>
>>What am i doing wrong?
Peter Cortiel