[Gambas-bugtracker] Bug #1426: Removing objects in gb.map

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Thu Oct 4 16:21:12 CEST 2018


http://gambaswiki.org/bugtracker/edit?object=BUG.1426&from=L21haW4-

Comment #3 by Bill NASCIMENTO:

Somewhat. I got no error but if I try to subsequently remove points it behaves strange.

Modifying Button2_Click method in the sample project to:

Public Sub Button2_Click()
  MapView1.Map["Proj1"].Remove("Point2")
  MapView1.Map["Proj1"].Remove("Point4")  '<--added line
  MapView1.Refresh
End

only "Point2" is removed, "Point4" is still there. but.... if you inverse the order (as below), both "Point2" and "Point4" are removed.

Public Sub Button2_Click()
  MapView1.Map["Proj1"].Remove("Point4")
  MapView1.Map["Proj1"].Remove("Point2")
  MapView1.Refresh
End




More information about the Bugtracker mailing list