MapPoint Forums

MapForums

Community of VE/MapPoint 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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #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


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 02:07 AM.


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

Soll Skiing
Soll skiing can accommodate skiers of varying standards. Book a great value holiday to this lively, popular resort. Holiday Hypermarket can help you to find a great ski holiday.

Online Travel Agent Uk
UK's Best Travel Agent at the Guardian Unlimited travel awards. We have UK Online Travel Agents free to help with your travel.

Cheap Flight Canada
Making a cheap flight to Canada can become a reality when you book online with dealchecker.co.uk. Our simple search allows you to see for yourself who is the cheapest.

Holidays to Sri Lanka
Holidays to Sri Lanka are enriched by the glittering tapestry of culture and breath taking mountain views. Book a holiday there today!

Cheap Portugal Holidays
Want to know what the best time to book cheap Portugal holidays is? Well have a look on ulookubook.com for some useful information to save your cash. Golf, tennis and cycling are all very popular here.

Holiday
For the holiday of your life, that is easy to plan, visit Travel.co.uk to see all the options.

Cheap Sharm Holidays
Get info on cheap Sharm holidays at On The Beach, and enjoy Egyptian nightlife!


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