GeoOneMinute in VB.net 2005 express

FreddyD
12-14-2006, 08:06 AM
Hi,

I'm, trying to create a DriveTimeZone with Visual-Basic 2005 Express with this codesample (MapPoint 2006 is installed and works):
...
Me.AxMappointControl1.ActiveMap.Shapes.AddDrivetim eZone(objLoc, 5 * geoOneMinute)
...

warning-message: The Name "geoOneMinute" was not declared.

The Code doesn't work.
Is there somewhere who knows the reason? And what have I to do?
P.S. In VB 6.0 it works correctly.

Wilfried
12-14-2006, 01:40 PM
Hi,

Probably some file not included. Dont search for it:

1 minute is: 1/1440
1 second is: 1/86400

So you can forget the geo* and now it is more easy :)

in your example it becaumes 5 / 1440

FreddyD
12-15-2006, 02:43 AM
Hallo Wilfried,

this code works really good, thanks a lot for your help.

rgds, FreddyD

 
Web mp2kmag.com
mapforums.com