MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




UnionSample -> vb.net translation

This is a discussion on UnionSample -> vb.net translation within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I'm automating MP 2004 with ASP/VB.Net. I found that sample in MP help, ... Code: Sub UnionSample() Dim oMap ...


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 05-27-2004
Junior Member
White Belt
 
Join Date: Mar 2004
Posts: 10
UnionSample -> vb.net translation

Hi,
I'm automating MP 2004 with ASP/VB.Net.
I found that sample in MP help, ...

Code:
Sub UnionSample()
    Dim oMap As MapPoint.Map
    Set oMap = GetObject(, "MapPoint.Application").ActiveMap
    
    Dim locNewYork, locParis As MapPoint.Location
    Set locNewYork = oMap.FindResults("New York City")(1)
    Set locParis = oMap.FindResults("Paris, Frankreich")(1)
    
    oMap.Union(Array(locParis, locNewYork)).GoTo
End Sub
... but I don't know how to fill that array-parameter for the Union in my vb.net code.
I stored some Locations in an vb.net array but if I put this in place of the array, I get the error "Wrong Parameter". So how to translate the vb.net array into a fitting array?
Or maybe the reason for the error is caused by something else?!

Thanks in advance
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
>, translation, unionsample, vbnet


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
Smooth View Translation from pin to pin discostu MapPoint 2006/2009 Discussion 3 05-12-2005 01:14 PM
Map Translation Software Anonymous MapPoint 2006/2009 Discussion 3 09-18-2003 10:41 AM


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