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 15:49:31
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Using ESRI's MapObjects LT 2 with VFP
Divers
Thread ID:
00537430
Message ID:
00537430
Vues:
60
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
__________________________________________________
Mesa Vista Software (david@mesa-vista.com)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform