Group2D.RemoveObjectAt
From Xojo Documentation
Method
Removes an object specified by its index.
Example
This code removes the first object, which is the image:
Var px As PixmapShape
Var t As TextShape
Var d As New Group2D
Var o As New Object2D
px = New PixmapShape(DSC_0343)
d.AddObject(px)
t = New TextShape
t.Y = 70
t.Value = "This is what I call a REAL car!"
t.FontName = "Helvetica"
t.Bold = True
d.AddObject(t)
d.RemoveObjectAt(0)
g.DrawObject(d, 100, 100)
Var t As TextShape
Var d As New Group2D
Var o As New Object2D
px = New PixmapShape(DSC_0343)
d.AddObject(px)
t = New TextShape
t.Y = 70
t.Value = "This is what I call a REAL car!"
t.FontName = "Helvetica"
t.Bold = True
d.AddObject(t)
d.RemoveObjectAt(0)
g.DrawObject(d, 100, 100)
Method
Removes an object specified by its reference.
Example
This example also removes the second item, which is the text.