Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mappoint AddPolyLine Method
Message
 
 
À
10/03/2005 15:01:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
00994592
Message ID:
00995347
Vues:
25
>I am trying to add lines to a mappoint map using the mappoint control and cannot get the addpolylines method to work. Can anyone give me a hand with this.

Phil,

You've to pass array by reference. I tested code below in VFP8SP1 and VFP9 with Mappoint 2004.
oApp = CREATEOBJECT("MapPoint.Application")
oMap = oApp.ActiveMap
oApp.Visible = .T.
oApp.UserControl = .T.
DIMENSION aoLoc[4]
aoLoc[1] = oMap.FindResults("Seattle, WA").Item(1)
aoLoc[2] = oMap.FindResults("Redmond, WA").Item(1)
aoLoc[3] = oMap.FindResults("Tacoma, WA").Item(1)
aoLoc[4] = aoLoc[1]
oMap.Location = aoLoc[1]
oMap.Shapes.AddPolyline(@aoLoc)
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform