C CHofm New Member Oct 4, 2023 #1 I created multible labels per addview command and now I want to delete them with a button how can i do that? I only found a method to delete all objects but I just want delete the "daughter" objects of the original label.
I created multible labels per addview command and now I want to delete them with a button how can i do that? I only found a method to delete all objects but I just want delete the "daughter" objects of the original label.
Erel B4X founder Staff member Licensed User Longtime User Oct 5, 2023 #2 Objects are released when there are no live references pointing to them. Remove the views from their parents and they will be removed from the views tree and their memory will be released. Upvote 0
Objects are released when there are no live references pointing to them. Remove the views from their parents and they will be removed from the views tree and their memory will be released.
Magma Expert Licensed User Longtime User Oct 5, 2023 #3 B4X: yourobject.RemoveViewFromParent 'or if not b4xview... yourobject.RemoveNodeFromParent Upvote 0