I have an application where when the user gets to the latitude field, they are prompted to press "Get location" in the navbar. It calls a getlocation function with uses the gps to get the coordinates and then fills the latitude and longitude fields automatically. The problem is that the field I'm currently on, which is the latitude field, does not get updated but the other field gets updated.
To illustrate, I've attached my application. If you run the application in the Questionnaire folder and
1. Go into the partially saved case ( 1 12011 1)
2. Make sure that the Latitude field is highlighted
3. Press "Get Location" in the navbar and get a location.
4. The longitude field is updated with the coordinate, but the latitude field is not
The code i'm using is:
Code: Select all
//Function uses device's GPS feature to get Location
if gps(read,60,10,"Reading GPS, Please wait...") = 1 then //read up to 60 seconds. if successful...
if accept(maketext("Save this location? %f, %f",gps(latitude),gps(longitude)),"Yes","No") = 1 then //if yes
LATITUDE = gps(latitude);
LONGITUDE = gps(longitude);
errmsg("Gps location failed, Please try again");
LATITUDE = notappl;
LONGITUDE = notappl;
There is no code in the LATITUDE or LONGITUDE procs
Is there any way to work around this? I believe it only affects android.