Neil Toulouse
Programmer
Back to this GPS control!!!
I am just reading the documentation on the control and some of the METHODS require you to pass variables to the method for the return values, and the method itself returns T/F depending on whether it was successful or not. The example VB code is:
Dim dbLatitude As Double
Dim dbLongitude As Double
If objGPS.OSGridToLatLong(503333, 406785, dbLatitude, dbLongitude) Then ‘ convert position
MsgBox “Lat = “ & CStr(dbLatitude) & “ : Long = “ & CStr(dbLongitude)
Else
MsgBox “Conversion failed”
End If
...what would the VFP equivalent of this be?
TIA
Neil "I like work. It fascinates me. I can sit and look at it for hours..."
I am just reading the documentation on the control and some of the METHODS require you to pass variables to the method for the return values, and the method itself returns T/F depending on whether it was successful or not. The example VB code is:
Dim dbLatitude As Double
Dim dbLongitude As Double
If objGPS.OSGridToLatLong(503333, 406785, dbLatitude, dbLongitude) Then ‘ convert position
MsgBox “Lat = “ & CStr(dbLatitude) & “ : Long = “ & CStr(dbLongitude)
Else
MsgBox “Conversion failed”
End If
...what would the VFP equivalent of this be?
TIA
Neil "I like work. It fascinates me. I can sit and look at it for hours..."