To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=85142 Issue #|85142 Summary|removeByIndex & RemoveByName don't remove the control Component|Database access Version|1.0.0 Platform|PC URL| OS/Version|Windows XP Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|none Assigned to|dbaneedsconfirm Reported by|jlaithier
------- Additional comments from [EMAIL PROTECTED] Thu Jan 10 17:26:34 +0000 2008 ------- This problem seems to be very near the setVisible(false) bug under 2.3.1 see issue 81791 removeByIndex work very well vith 2.2.1 it does not work with 5.3.1 This macro , runnig on a one form databasedocument, with one button, show the problem. using removeByName instead of RemoveByIndex give the same result. The macro that run on event "When loading " : Option explicit Sub Init Dim oForm, oView, SaveControl, oTous, oTousModel, oTousCtrl as Object oForm = ThisComponent.drawpage.getforms().getbyname("Standard") oView = ThisComponent.CurrentController() 'Keep a copy of the control oTous = oform.getByIndex(0) oTousCtrl = oview.getControl(oTous) SaveControl = oview.getControl(oTous).getModel() 'wait a little wait(3000) 'take off the control oTous = oform.getByIndex(0) oTousCtrl = oview.getControl(oTous) oTousCtrl.designMode = true oForm.removeByIndex(0) 'wait a little wait(3000) 'put the control oForm.insertByIndex(0,SaveControl) oTous = oform.getbyindex(0) oTousctrl = oview.getcontrol(oTous) oTousctrl.setvisible(True) oTousCtrl.designMode = False End Sub --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]