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

Validate Address String

This is a discussion on Validate Address String within the MapPoint Desktop Discussion forums, part of the Map Forums category; Using Mappoint 2002 and VB 6.0 I have created a simple program to provide drivers with a route when they ...

  1. #1
    pgrooms is offline Junior Member White Belt
    Join Date
    Nov 2002
    Posts
    1

    Validate Address String

    Using Mappoint 2002 and VB 6.0 I have created a simple program to provide drivers with a route when they select a customer from an Access database. Everything works great as long as the address info is valid. How can I validate the address information in Mappoint and let Mappoint decide if it can route using the address info. :!:

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    you have to validate address before sending it.


    you can use FindAddressResults method of map object of Mp2k2

    object.FindAddressResults([Street], [City], [OtherCity], [Region], [PostalCode], [Country])

    the function will return results. Then you will control if the address exists is. if not exists. then you must say to user to correct the address. MAybe you can give correct address. OR you can return to user the postal code that is missed. Just think abut it.

    Hope it helps.

    example pasted from microsoft reference:

    Sub FindAddressSearch()
    Dim objApp As New MapPoint.Application
    Dim objFindResults As MapPoint.FindResults

    'Set up application
    objApp.Visible = True
    objApp.UserControl = True

    'Output first result of find search
    Set objFindResults = objApp.ActiveMap.FindAddressResults("One Microsoft Way", "Redmond", , "WA", , geoCountryUnitedStates)
    MsgBox "The first item in the find list is: " _
    + objFindResults.Item(1).Name

    End Sub

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Remember to validate your geo-locations...
    By Winwaed in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 01-13-2006, 12:41 PM
  2. MappointControl OpenMap filename string length limitation
    By malejo in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-02-2005, 02:55 AM
  3. Drawing contour lines from nodes in a string file
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-29-2003, 09:30 AM
  4. Getting Lat/Lon from a given address
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 09-12-2003, 03:01 PM
  5. Create UDL from a connect string with code
    By kdybvik in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-23-2002, 12:31 PM

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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83