Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

option strict on issues

This is a discussion on option strict on issues within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi All In our Vb.Net app we have set option strict to on. This produced a number of errors which ...

  1. #1
    starbuck's Avatar
    starbuck is offline Member Green Belt
    Join Date
    Oct 2003
    Posts
    68

    option strict on issues

    Hi All

    In our Vb.Net app we have set option strict to on. This produced a number of errors which we have sorted all but 1.
    We still get the following error - Option Strict On disallows implicit conversions from 'System.Object' to 'MapPoint.Pushpin'.

    In the code below

    Private Sub map1_SelectionChange(ByVal sender As Object, ByVal e As AxMapPoint._IMappointCtrlEvents_SelectionChangeEve nt) Handles map1.SelectionChange

    Dim SP As MapPoint.Shape
    Dim loc As MapPoint.Location
    Dim pin As MapPoint.Pushpin = e.pNewSelection
    GetObj(pin.Name, pin.Symbol)

    Select Case mouseBtn
    Case 1
    Try
    If TypeOf e.pNewSelection Is MapPoint.Pushpin And Not isVeh Then
    If prevCatch = 1 And LastCatch = 2 Then SetVehToJob()
    loc = map1.ActiveMap.GetLocation(80, 0) 'get a location over at the arctic ocean
    SP = map1.ActiveMap.Shapes.AddShape(MapPoint.GeoAutoSha peType.geoShapeRectangle, loc, 1, 1)
    SP.Select()
    SP.Delete()
    End If
    Catch ex As Exception
    End Try
    Case 2
    'TODO
    'DoFloatMenu(LastCatch)
    End Select
    End Sub

    The error relates to - Dim pin As MapPoint.Pushpin = e.pNewSelection

    Any ideas folks
    Thanks in advance.

  2. #2
    starbuck's Avatar
    starbuck is offline Member Green Belt
    Join Date
    Oct 2003
    Posts
    68

    sort

    Ok, figured it out

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Installation ISSUES. PLZZZZZZZZ HELP
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-14-2005, 03:40 PM
  2. Disabling cut option
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-09-2004, 04:05 AM
  3. CSV importing issues
    By SideStep in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-28-2003, 03:02 AM
  4. pushpins option
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-25-2003, 05:35 AM
  5. Routing: how to set shortest option
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 09-08-2003, 06:51 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27