MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Type mismatch error

This is a discussion on Type mismatch error within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi All in regard to the code below I get error 13 type mismatch on line marked with ##, Any ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-20-2003
starbuck's Avatar
Member
Green Belt
 
Join Date: Oct 2003
Posts: 68
Type mismatch error

Hi All

in regard to the code below I get error 13 type mismatch on line marked with ##, Any ideas why please.
Thanks in advance




Dim oOrgLoc As mappoint.Location
Dim oMap As mappoint.Map
Dim objApp As New mappoint.Application
Dim dblOrgLat As Double, dblOrgLon As Double
Dim pCode As String

If Len(Postcode_txt) = 0 Then Exit Sub
pCode = Trim$(Postcode_txt)
objApp.Visible = False
objApp.UserControl = False

Set oMap = objApp.ActiveMap
oMap.Altitude = 1
## Set oOrgLoc = oMap.FindAddressResults(, , , , pCode, geoCountryUnitedKingdom)
CalcPos oMap, oOrgLoc, dblOrgLat, dblOrgLon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 10-20-2003
Senior Member
Green Belt
 
Join Date: Sep 2003
Posts: 103
Try this

Dim strCounty As String

strCountry = "UnitedKingdom"

Set oOrgLoc = oMap.FindAddressResults(, , , , pCode, strCounty)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 10-20-2003
starbuck's Avatar
Member
Green Belt
 
Join Date: Oct 2003
Posts: 68
Same error

Thanks for tip but same error.
What I am trying to do is get lat/lon from the postcode, any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 10-20-2003
starbuck's Avatar
Member
Green Belt
 
Join Date: Oct 2003
Posts: 68
Got it

The line should be

Set oOrgLoc = oMap.FindAddressResults(, , , , pCode, strCountry)(1)

Now it works, thanks..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
error, mismatch, type


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Parser Error Message: Could not load type 'StoreLocatorVB.Gl mike91 MapPoint 2006/2009 Discussion 1 06-13-2006 04:32 PM
FIXED: Type Mismatch in DisplayDataMap gavin MapPoint 2006/2009 Discussion 5 08-22-2005 04:50 AM
Type of itinerary ifc MapPoint 2006/2009 Discussion 0 04-28-2004 09:32 AM
Type Mismatch adding pushpin.... Anonymous MapPoint 2006/2009 Discussion 2 11-22-2003 11:53 AM
Mime Type for .ptm files? kebernet MapPoint 2006/2009 Discussion 1 07-01-2003 04:11 PM


All times are GMT -5. The time now is 01:33 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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