P paul j Member Licensed User Dec 6, 2007 #1 on runtime I add a object to form1, but I also want to remove it again, to use the exacltly same obect on another (form2 - form#). Is there a DeleteObject-methode available on runtime or maybe a ChangeParent-methode?
on runtime I add a object to form1, but I also want to remove it again, to use the exacltly same obect on another (form2 - form#). Is there a DeleteObject-methode available on runtime or maybe a ChangeParent-methode?
Erel B4X founder Staff member Licensed User Longtime User Dec 6, 2007 #2 Both are available. You can use YourObject.Dispose to delete the object. Afterwards you will need to add it again with AddObject("YourObject",...) You could also change a controls parent with FormLib.ChangeParent.
Both are available. You can use YourObject.Dispose to delete the object. Afterwards you will need to add it again with AddObject("YourObject",...) You could also change a controls parent with FormLib.ChangeParent.
P paul j Member Licensed User Dec 6, 2007 #3 thanks Erel, exactly I need. I overlooked it in the help