MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Problem creating find routine

This is a discussion on Problem creating find routine within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am creating my own version of the find place name function to find my accounts. My code is copied ...


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

Today's Posts Twitter Feed 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 11-05-2002
Junior Member
Yellow Belt
 
Join Date: Jul 2002
Posts: 17
Send a message via AIM to David Kachuck
Problem creating find routine

I am creating my own version of the find place name function to find my accounts. My code is copied from the sample find program except that my find string (strAccountName) comes from a separate form specially designed for that purpose. Somehow I get a "type mismatch" error on setting the objLoc:

Dim intX As Integer

strAccountName = frmSearchMap.strAccountName
Set objMap = MappointControl1.ActiveMap

Set objFindResults = objMap.FindPlaceResults(strAccountName)
frmSearchMap.lstPossibleNames.Clear
intX = 1
Do While intX <= objFindResults.Count
Set objLoc = objFindResults.Item(intX)
frmSearchMap.lstPossibleNames.AddItem objLoc.Name
intX = intX + 1
Loop

frmSearchMap.lstPossibleNames.Visible = True

frmSearchMap.Show

Perhaps someone can see my blind spot here. Any suggestions appreciated.
__________________
David Kachuck
dk0146@netscape.net

Oracle Certified Professional Database Administrator (OCP)
MS Access Certified Expert (MAUS)
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 11-06-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
Try making this change to the Do Loop.

Do While intX <= objFindResults.Count
frmSearchMap.lstPossibleNames.AddItem objFindResults.Item(intX) .Name
intX = intX + 1
Loop
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
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
creating, find, problem, routine


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
Creating an Add-in in VS .net Anonymous MP2K Magazine Articles 2 02-18-2005 07:21 PM
TIP: Creating A HyperLink Map to Find Polling Place Eric Frost MapPoint 2006/2009 Discussion 4 11-16-2004 11:31 PM
Routing routine Anonymous MapPoint 2006/2009 Discussion 4 02-27-2004 01:16 PM
Creating a tooltip on a map Anonymous MapPoint 2006/2009 Discussion 0 01-20-2004 07:09 AM
POI Extraction Routine EdB MapPoint 2006/2009 Discussion 2 08-09-2002 04:28 AM


All times are GMT -5. The time now is 07:39 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Thassos Holidays
Visit an unspoilt and beautiful Greek island with Thassos holidays available through UlookUbook.



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