*form from create object. oform.addobject('oBigContainer','subBigContainer') *The add is inside a loop. for c = 1 to numberofcontainers lcLittleContainerName='cnt'+right(str(c+100,3),2) oform.oBigContainer.addobject(lcLittleContainerName,'subLittleContainer') loLittleContainer=eval([oBigContainer.]+lcLittleContainerName) loLittleContainer.top=(c-1)*90 ... etc ... endfor *remove looks like: oform.oBigContainer.RemoveObject(lcLittleContainerName)When I activate the command window and do it from there - works. Only fails inside the PRG. I am checking to see if changing sequence of the remove instruction has an affect. Also - the sliders are OCX - so I will need to see if an AutoYield offers some hope!
oForm.oBigContainer.RemoveObject("oLittleContainer")>>VFP crashes. When I remove the object from the command window while the form is running, it works okay! BTW: oLittleContainer contains some textboxes.