General information
Category:
ActiveX controls in VFP
This works for me:
DIMENSION lalocations[2] &&one-dimensional array
lalocations[1] = loLocBrussels
lalocations[2] = loLocAntwerp
* where loLocBrussels = .ActiveMap.FindPlaceResults("brussels").Item(1)
* without location
loUnion = thisform.OleMapPoint.ActiveMap.Union(@lalocations)
loUnion.GoTo()
>Hello,
>
>can anybody help... i'm working with MS MapPoint 2002 and I'm using the following code to show two maps on the same screen :
>
>*** The MapPoint active-x control is placed on the form ***
>
>loLocBrussels = thisform.OleMapPoint.ActiveMap.FindPlaceResults("brussels").Item(1).Location
>loLocAntwerp = thisform.OleMapPoint.ActiveMap.FindPlaceResults("antwerp").Item(1).Location
>
>DIMENSION lalocations[2,1]
>lalocations[1,1] = loLocBrussels
>lalocations[2,1] = loLocAntwerp
>
>loUnion = thisform.OleMapPoint.ActiveMap.Union(lalocations)
>loUnion.GoTo()
>
>
>I get the error : "invalid parameter". In VB they use the function Array(loLocBrussels,loLocAntwerp) to transfer the 2 objects to an array... In FoxPro this command does not exist...
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only