Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using ESRI's MapObjects LT 2 with VFP
Message
De
30/07/2001 17:26:29
 
 
À
30/07/2001 15:49:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00537430
Message ID:
00537498
Vues:
38
>I am trying to use ESRI's ActiveX control MapObjects LT 2 to display a ArcView shape file on a screen form. ESRI's web site only has one example for Visual FoxPro - and it is for the full version of MapObjects 2 instead of the MapObjects LT 2.
>
>I have a form with the following in the INIT method:
>
>_VFP.AutoYield = .F.
>layer = CREATEOBJECT("MapObjectsLT2.MapLayer")
>layer.file = "c:\program files\esri\mapobjectsLT2\samples\data\northeast\necenter.shp"
>layer.visible = .F.
>THISFORM.oleMap.Layers.Add(layer)
>THISFORM.oleMap.Extent = THISFORM.oleMap.FullExtent
>
>While I don't get any error messages, the form just comes up with a blank white image instead of showing the shape file. I would greatly appreciate any help anyone can offer to get me started in the right direction.
>
>Thanks,
>David

Just set layer.visible back to .T. again and the map should show up OK.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform