Group2D.RemoveAt
From Xojo Documentation
Method
Removes an object specified by its index.
Example
This example 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.Add(px)
t = New TextShape
t.Y = 70
t.Value = "This is what I call a REAL car!"
t.FontName = "Helvetica"
t.IsBold = True
d.Add(t)
d.RemoveAt(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.Add(px)
t = New TextShape
t.Y = 70
t.Value = "This is what I call a REAL car!"
t.FontName = "Helvetica"
t.IsBold = True
d.Add(t)
d.RemoveAt(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.