OverSchranzer
03-10-2005, 05:57 AM
Hello,
i am using the mappoint control of mappoint european 2004 to create an application
I want to use pushpins to show data on the map
in some exsamples i saw code like:
Dim myPushpins(1) As Pushpin
myPushpins(0) = New Pushpin()
myPushpins(0).IconDataSource = "MapPoint.Icons"
myPushpins(0).IconName = "31"
myPushpins(0).Label = "Start"
But it doesnt work!
Here is my Code
Dim pinCounter As Integer
pinCounter = 0
objRecordSet.MoveFirst()
Dim myPushpins(pinCounter.MaxValue - 1) As MapPoint.Pushpin
Do While Not objRecordSet.EOF
myPushpins(pinCounter) = New MapPoint.Pushpin '<<--- ? "New cannot be used with an Interface..." ?
objRecordSet.MoveNext()
pinCounter += 1
Loop
plz help me, what sould i do?
i am using the mappoint control of mappoint european 2004 to create an application
I want to use pushpins to show data on the map
in some exsamples i saw code like:
Dim myPushpins(1) As Pushpin
myPushpins(0) = New Pushpin()
myPushpins(0).IconDataSource = "MapPoint.Icons"
myPushpins(0).IconName = "31"
myPushpins(0).Label = "Start"
But it doesnt work!
Here is my Code
Dim pinCounter As Integer
pinCounter = 0
objRecordSet.MoveFirst()
Dim myPushpins(pinCounter.MaxValue - 1) As MapPoint.Pushpin
Do While Not objRecordSet.EOF
myPushpins(pinCounter) = New MapPoint.Pushpin '<<--- ? "New cannot be used with an Interface..." ?
objRecordSet.MoveNext()
pinCounter += 1
Loop
plz help me, what sould i do?