MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




AddPolyLine (s) array problem

This is a discussion on AddPolyLine (s) array problem within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I produce a lot of DriveTimeZones in MapPoint 2006 by VB6-code and I stored all vectors of the polygones ...


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 (3) Thread Tools Display Modes
  3 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 12-20-2006
Junior Member
White Belt
 
Join Date: Dec 2006
Location: Cologne in Germany
Posts: 4
Question AddPolyLine (s) array problem

Hi,

I produce a lot of DriveTimeZones in MapPoint 2006 by VB6-code and I stored all vectors of the polygones in my MS ACCESS xxx.mdb.

I would like to takte this polygones to the map at a later time using the method AddPolyLine.

The code works correctly if I define the locaion-variable as follows:

Dim objLoc(1 to 9) as MapPointCtl.Location

However, the parameters "1" and "9" must be constants.

Since I, however, don't know how many vectors my polygones have, I would like to us a variable array. I then could determine the number of vectors and fix the size for the array.

If I try this, I always get the error massage: Wrong parameter -214 702 4809 (800 700 57).

I have read much in this forum but i haven't found a solution.

Can anybody help, how to do?
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 12-20-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,094
Re: AddPolyLine (s) array problem

Hi,

You can use AddLine method. Then you are free in the needed capacity.
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
addpolyline, array, problem


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/addpolyline-s-array-problem-5510.html

Posted By For Type Date
Author - MP2K Magazine This thread Refback 01-03-2007 12:49 AM
Microsoft MapPoint 2006 - MP2K Magazine This thread Refback 12-28-2006 12:48 PM
Interview with Steve Lombardi - MapPoint Articles - MP2K Magazine This thread Refback 12-27-2006 06:37 PM

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
Shapes.AddPolyline is very slow tdaffin MapPoint 2006/2009 Discussion 4 01-27-2006 07:08 AM
SetFieldsVisibleInBalloon - how do I set up the array jtowell MapPoint 2006/2009 Discussion 7 05-16-2005 12:59 PM
Drawing a polyline with Visual Basic Net - Array problem Anonymous MapPoint 2006/2009 Discussion 0 03-24-2005 04:16 PM
Addpolyline , Array , Visual Basic and Other languages Anonymous MapPoint 2006/2009 Discussion 2 08-26-2004 03:58 AM
addpolyline Anonymous Wish List 2 04-25-2003 03:50 PM


All times are GMT -5. The time now is 08:17 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

Cheap Flights to Brussels
Book cheap flights to Brussels online today. Brussels is a city with diverse culture with over 100 museums to visit and an array of different architectural designs to view.

Business Travel Agent
Leading Business Travel Agent. Personal service is at the heart of our business. Talk to one of our travel agents today.

Holidays in Italy
Holidays in Italy boast some stunning countryside as well as a beautiful coastline. You can even visit an active volcano like Stromboli or Etna. Book at dealchecker.co.uk.

St Lucia Holidays
St Lucia holidays offer something for everyone. Enjoyed by families and young couples alike, St Lucia is a great destination. See online!

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.

Cheap Travel
Travel.co.uk has some excellent offers on cheap travel. Click here.

Cheap holidays in Cyprus
Stunning coastline! Beautiful beaches! Cheap holidays in Cyprus, available at On The Beach.


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