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:35:53
 
 
À
30/07/2001 17:26:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00537430
Message ID:
00537505
Vues:
14
>>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.

Thanks,
I actually simplied the code to post, and I just realized that I left out the layer.visible = .T. code. I also just realized that I also had a typo on another line which was my real problem.

Once again thanks,
David
__________________________________________________
Mesa Vista Software (david@mesa-vista.com)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform