Note that you may not get a value immediately from your location services
subsystem so if you find there's nothing there, then try starting up the sensor
in openCard or openStack, wait some time and then use the button to get the
current location.
Hope that makes sense (and works for you).
Or
Mike
preOpenStack:
if the environment = "mobile" then
if mobileSensorAvailable("location") then
mobileStartTrackingSensor "Location", false
end if
end if
--- this is a hacked up version of what I use. It should be close.
It compiles but not tested. I have to see if this need
This has worked for me in the past, but I haven’t tried it in quite some time:
mobileStartTrackingSensor "location", false
put mobileCurrentLocation() into tLocArray
mobileStopTrackingSensor "location"
put "lat: " & tLocArray["latitude"] & cr & "long: " & tLocArray["longitude”]
into fld "report"