Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using ESRI's MapObjects LT 2 with VFP
Message
From
30/07/2001 17:26:29
 
 
To
30/07/2001 15:49:31
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00537430
Message ID:
00537498
Views:
40
>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
Map
View

Click here to load this message in the networking platform