GPSHeading objects
The MagneticVariationDirection property specifies the direction, east or west, of the magnetic variation. If the GPS device does not support measurement of the magnetic variation, this value is empty. Values are E for East or W for West.
The MagneticVariationDirection property takes a Char value. This example writes the true heading and magnetic variation to a multiline edit box:
real TrueHeading real MV char MVD GPSHeading myGPSHeading TrueHeading = myGPSHeading.Heading MV = myGPSHeading.MagneticVariation MVD = myGPSHeading.MagneticVariationDirection mle_1 = "True heading: " + String(TrueHeading) + "~r~n" mle_1 += "Variation: " + String(MV) + MVD