PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 25 → WINDEV MOBILE -
WINDEV MOBILE -
Iniciado por adrianoboller, 14,feb. 2015 16:03 - 1 respuesta
Miembro registrado
3.661 mensajes
Popularité : +175 (223 votes)
Publicado el 14,febrero 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 )
Miembro registrado
3.661 mensajes
Popularité : +175 (223 votes)
Publicado el 14,febrero 2015 - 17:13
MODERADOR - FAVOR EXCLUIR ESSE POST NAO ESCREVI DIREITO O TITULO

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