Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

having trouble getting the GPS functionality to return values

47 views
Skip to first unread message

smtt...@gmail.com

unread,
Jul 28, 2013, 10:24:13 AM7/28/13
to
I have the following code in a command button to "hopefully" return gps values:

The MessageBoxes return:
1/1/0000 -- for the timestamp
-1 for the Longitude

Please tell me what i'm missing

Thanks in advance

Steve

*******************
integer li_ret
eon_mobile_geolocationex gps
eon_mobile_str_coordinates astr_coordinates


if appeongetclienttype()="MOBILE" then
gps = create eon_mobile_geolocationex

li_ret = gps.of_isenabled()

IF li_ret > 0 THEN
li_ret = gps.of_open(0,0)

IF li_ret > 0 THEN
li_ret = gps.of_getcurrentposition (astr_coordinates)
IF li_ret > 0 THEN
MessageBox("Timestamp",string(astr_coordinates.dt_timestamp))
MessageBox("Longitude",string(astr_coordinates.dec_longitude))
END IF
END IF
END IF

destroy gps
end if

*******************
0 new messages