PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 25 → WINDEV MOBILE -
WINDEV MOBILE -
Débuté par adrianoboller, 14 fév. 2015 16:03 - 1 réponse
Membre enregistré
3 661 messages
Popularité : +175 (223 votes)
Posté le 14 février 2015 - 16:03
Procedure GPS_VerificaStatus()

Retorno is string = ""

GloLatitude , GloLongitude is real = 0

GPSInitParameter(gpsSatellite,gpsPrecisionHigh)

// Recuperação da posição
Retorno is geoPosition = GPSGetPosition() // 2000 = Intervalo máxo,p de 20 segundos

GloLatitude = NumToString(Retorno..Latitude,"+-10.6f")
GloLongitude = NumToString(Retorno..Longitude,"+-10.6f")

Retorno = GloLatitude +"; "+ GloLongitude

IF GloLatitude = 0 AND GloLongitude = 0 OR GloLatitude = null AND GloLongitude = null
ToastDisplay("GPS Desligado!!!")
END

RESULT(Retorno )
Membre enregistré
3 661 messages
Popularité : +175 (223 votes)
Posté le 14 février 2015 - 17:13
MODERADOR - FAVOR EXCLUIR ESSE POST NAO ESCREVI DIREITO O TITULO

MODERATOR - PLEASE DELETE THIS POST NO RIGHT TO TITLE I WROTE