Share via


EndTime property

Returns or sets the time to stop driving each day. Read/write Date.

Applies to

Objects:  DriverProfile

Syntax

object.EndTime

Parameters

Part Description
object Required. An expression that returns a DriverProfile object.

Example

    Sub GetEndofDayTime()

  Dim objApp As New MapPoint.Application   Dim objMap As MapPoint.Map   Dim objRoute As MapPoint.Route
  'Set up the application   Set objMap = objApp.ActiveMap   Set objRoute = objMap.ActiveRoute   objApp.Visible = True   objApp.UserControl = True
  'Add route stops and calculate the route   objRoute.Waypoints.Add objMap.FindResults("Seattle, WA").Item(1)   objRoute.Waypoints.Add objMap.FindResults("Redmond, WA").Item(1)   objRoute.Calculate
  'Get the end of day time   MsgBox "End of Day is set to be: " _     + CStr(objRoute.DriverProfile.EndTime)
  End Sub

Note  This sample code is specific for use in MapPoint North America; it is for illustration purposes only.