>_SCREEN.AddProperty("oToolBar") >_SCREEN.oToolBar = NEWOBJECT('mytoolbar','mylib.vcx') >>As you can see I changed the name of the toolbar.
>LOCAL ShapeID >ShapeID = "" >SELECT localcrime1 >Scan For Alltrim(crimetype) <> "Vandalism" > ShapeID = localcrime1.shapename > Thisform.Grove.RemoveObject(ShapeID) >ENDSCAN >this.mytoolbar.hide() >>The name of the form is 'Grove'. There needs to be a referrence to the form so that the code can act on the form's image and remove the unwanted objects, but I haven't had success yet. I can get the code to remove the objects if I run it within the forms methods, but as soon as I run it from the toolbar it won't even recognize the shape's names. How is this done?