Mappoint Methods question

Re: Mappoint Methods question (Solved)

Postby George » Tue Aug 11, 2009 7:55 pm

Now is working fine after I am using FWH 9.04 + XHarbour Builder Pro Sep08
This is the code:

local hToolBar, hStandard, oMapPoint, nDist, oMap
oActiveX = TActiveX():New( oWnd, "MapPoint.Control.16" )


oMap := oActiveX:Do( "Newmap", 1 )
hToolBar = oActiveX:GetProp( "Toolbars" )
//hStandard = OleGetProperty( hToolBar, "Item", "Standard" )
//OleSetProperty( hStandard, "Visible", .T. )
//oActiveX:GetProp( "Toolbars" )

oMap := oActiveX:ActiveMap()
oStartLocation:= oMap:FindResults("205 Broadway, Lawrence, MA"):Item(1)
oEndLocation:= oMap:FindResults("77 Centre Street, Roxbury, MA"):Item(1)

msgInfo( oMap:Distance( oStartLocation, oEndLocation ), "Distance" )

Thanks everyone for your help.

Regards,

George
George
 
Posts: 724
Joined: Tue Oct 18, 2005 6:49 pm

Re: Mappoint Methods question

Postby James Bott » Tue Aug 11, 2009 10:31 pm

George,

Yea!

Just for clarity, I would change this line:

oMap := oActiveX:Do( "Newmap", 1 )

To this:

oActiveX:Do( "Newmap", 1 )

Congratulations on getting it working.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 33 guests