At 09:41 AM 01/28/1999 -0600, Gerald Kornelson wrote:
>After a user does a Find Intersection, MI leaves a symbol at that 
>intersection.  To get rid of it, you can
>choose Map...Clear Cosmetic Layer, etc.
>
>In MB, I put a Run Menu Command M_MAP_CLEAR_COSMETIC.
>
>Is there a way to avoid the "Discard all the objectsin the Cosmetic Layer?"  
>dialog box from showing up?
>
>I would like the program to simply delete the symbol after finding the 
>intersection, non-interactive.



Sub ClearCosmetic
   If FrontWindow() Then
     If WindowInfo(FrontWindow(),WIN_INFO_TYPE) = WIN_MAPPER Then
        Delete Object From WindowInfo(FrontWindow(),WIN_INFO_TABLE)
    End If
   End If
End Sub



Steve Wallace
GIS & Market Information Manager
Florida Farm Bureau Insurance Companies

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to