PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 25 → WINDEV MOBILE -
WINDEV MOBILE -
Iniciado por adrianoboller, fev., 14 2015 4:03 PM - 1 resposta
Membro registado
3.651 mensagems
Popularité : +175 (223 votes)
Publicado em fevereiro, 14 2015 - 4:03 PM
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 )
Membro registado
3.651 mensagems
Popularité : +175 (223 votes)
Publicado em fevereiro, 14 2015 - 5:13 PM
MODERADOR - FAVOR EXCLUIR ESSE POST NAO ESCREVI DIREITO O TITULO

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