AllowEdit  AutoArrange

Chapter 3: Property Descriptions and Usage

Altitude

Applies to

GPSFix objects

Description

Indicates the height above mean sea level in meters of the current position fix.

Usage


In scripts

The Altitude property is a real number indicating the height of a GPS fix above mean sea level. The following lines create a SerialGPS object, retrieve information about the current fix, and write the altitude to a single line edit box:

SerialGps myGPS
GPSFix myFix

Integer rc

MyGPS = CREATE SerialGPS
rc = myGPS.Open()
...
rc = MyGPS.GetFix(myFix)
sle_1.txt = "Altitude: " + String(myFix.Altitude) + "M"





Copyright © 2004. Sybase Inc. All rights reserved. AutoArrange

View this book as PDF