View Full Version : POI Extraction Routine

08-07-2002, 09:06 PM
I am unable to get the sample in the article to run

For me, the first stumbling block comes on this line,

Dim oMap As MappointCtl.Map

The first declaration provided. There is no MappointCtl object, property or method. I was able to get by this by changing it to

Dim oMap As Mappoint.Map

However, this line, which follows shortly after

Set oMap = MappointControl1.NewMap(geoMapNorthAmerica)

I have no answer for. When I run it, I get Object Required, and my searches find no MapPointControl1 nor a NewMap().

John Meyer
08-08-2002, 12:04 PM
The example you were using was more than likely for Visual Basic using the Mappoint ActiveX Control. MappointControl1 is the default name given to the control when you drag it onto your form.

What are you programming in?

08-09-2002, 04:28 AM
My bad. :oops:

I do use VB.

However, I was taking the code at face value. None of the other routines
that I have had need for (from this site) required actually placing a MapPoint control on the form.