smtt...@gmail.com
unread,Jul 28, 2013, 10:24:13 AM7/28/13You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
*******************