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.
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.