About GPS ToolKit
Introduction
Purchasing GPS ToolKit
Redistributing GPS ToolKit
License Agreement
Support
Getting Started
How to Use GPS ToolKit
Adding GPS ToolKit to a Visual Basic Project
Adding GPS ToolKit to a Visual C++ Project
Adding GPS ToolKit to an Excel Worksheet
Setting up the GPS
How to Use Events
Handling Events in Visual Basic
Handling Events in Visual C++
Handling Events in Microsoft Excel
GPS ToolKit Sample Projects
Handling GPS ToolKit Errors
Reference
Properties
Altitude
AltitudeUnits
ArrivedAtDest
AutomaticOperation
BaudRate
CrossTrackError
DegLabel
DestClosingVelocity
DestWptID
DestWptLatitude
DestWptLongitude
DistUnits
DGPSRefStationID
FixDateTime
FixGood
FixQuality
FixSatellitePRNs
GeoidHeightAboveWGS84Ellipsoid
HDOP
Latitude
LatLonFormat
Longitude
MagVariation
MinLabel
ModeIndicator
NumSatellitesInFix
NumSatellitesInView
OperationMode
OrigToDestMagBearing
OrigToDestTrueBearing
OriginWptID
PDOP
PortHandle
PortName
RangeToDest
RouteContainsAllWpts
RouteName
SatelliteInViewPRNs
SecLabel
Speed
SpeedUnits
TimeSinceLastDGPSUpdate
TrueBearingToDest
TrueCourse
VDOP
WptsInRoute
Methods
Close
GetSatelliteInfo
GetWptLocation
Open
OpenFile
Events
FixUpdate
FileComplete
NavUpdate
RawDataReceived
SatelliteUpdate

Close Method

Stops the reading of GPS data and closes the communications port if open.

Syntax

Visual Basic

object.Close

Visual C++

object.Close()

Part Description
object An object expression that evaluates to a GPS ToolKit object.

Example

Visual Basic

myGPSToolKit.Close

Visual C++

m_myGPSToolKit.Close();

Remarks

  • If Close() is called when no port or file is open, no exception is thrown and execution will continue normally.

  • This method closes the communications port when GPS ToolKit is reading from a GPS. If GPS ToolKit is reading from a file, this method terminates the file read and fires the OnFileComplete event.

  • This method is called automatically when the object is destroyed.

Returns

Nothing

Errors

If the port is open and unable to be closed for any reason, or the file read is unable to be terminated, GPS ToolKit will throw an "Unexpected Error" exception.

See Also

BaudRate property, Open method, OpenFile method