General information
Category:
ActiveX controls in VFP
>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.
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