Community of VE/MapPoint Users and Developers
This is a discussion on problems with queryshape within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Trying to return all pushpins in a shape with 3 datasets on map. As i iterate through the shapes I ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| problems with queryshape Code: tshapes = objmap.Shapes.Count
Do While tshapes <> 0
Set objshape = objmap.Shapes.Item(tshapes)
objshape.Select
Set objrec = objdata.QueryShape(objshape)
MsgBox Str(objdata.RecordCount)
objrec.MoveFirst
reccount = 1
Do While Not objrec.EOF
reccount = reccount + 1
Loop
msgbox reccount
tshapes = tshapes - 1
Loop
Last edited by Wilfried; 09-08-2006 at 01:46 PM. |
| |||
|
Hi, The first messagebox will popup (with the record count I assume), but then your code runs forever in the second loop because you dont increment the cursor in the recordset. You have to call MoveNext in the second loop. Or there is no record and the result is already EOF.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VB6 error "Method 'QueryShape' of object 'DataSet' fail | David J | MapPoint 2006/2009 Discussion | 2 | 12-07-2005 01:13 PM |
| QueryShape dont work as expected | Bed007 | MapPoint 2006/2009 Discussion | 3 | 10-23-2005 02:39 PM |
| Problem with dataset.QueryShape Method | Ray Liu | MapPoint 2006/2009 Discussion | 1 | 07-15-2004 10:55 AM |
| Huge memory leak in using QueryShape? | random0000 | MapPoint 2006/2009 Discussion | 2 | 03-28-2003 05:22 AM |
| QueryShape problem Please help | Anonymous | MapPoint 2006/2009 Discussion | 2 | 03-13-2003 08:57 AM |
Wengen Skiing
Wengen is known as one of those classic Swiss ski resorts that have a relaxed atmosphere and stunning scenery. Experience Wengen skiing holidays yourself, book online.
City Breaks
Top 10 City Breaks . Based on holidays booked this year, these are the most popular City Breaks for 2006
Holidays Italy
Book your holidays in Italy. Italy has a great climate and the beaches to go with it. Book a great deal for great value online at dealchecker.co.uk.
All Inclusive Maldives
Visit The Holiday Place.co.uk for great deals on all inclusive holidays to the Maldives. Book a holiday to the outstandingly beautiful Maldives.
Cyprus
Before visiting Cyprus, make sure you are well informed to make the most of your holiday. Online at ulookubook.com you check out our useful travel guides. Find out all about the Cyprus nightlife, shopping, eating and customs.
Cheap family holidays
To plan cheap family holidays, use Travel.co.uk to explore all the delightful possibilities that there are.
Gran Canaria Holidays
Visit the Canary Islands! See information on Gran Canaria holidays at On The Beach!