OperationMode Property
Returns the current GPS operating mode.
Syntax
Visual Basic
object.OperationMode
Visual C++
object.GetOperationMode()
| Part
| Description |
| object |
An object expression that evaluates to a GPS ToolKit object. |
Example
Visual Basic
Dim operationMode As Integer
'Get operation mode
operationMode = myGPSToolKit.OperationMode
Visual C++
_variant_t vtOperationMode;
// Get operation mode
vtOperationMode = m_myGPSToolKit.GetOperationMode();
short operationMode = (short)vtOperationMode;
Remarks
Defined OperationMode values are as follows:
| Setting
| Description |
| 1 |
Fix not available |
| 2 |
2D |
| 3 |
3D |
Default
Empty (VT_EMPTY)
Returns
A VARIANT (type VT_I2/short) containing the last reported GPS operation mode.
If no operation mode data is reported the variable will be empty (type VT_EMPTY).
Errors
None
See Also
AutomaticOperation property, SatelliteUpdate event
|