PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → Change the GPS status - Alterar o Status do GPS
Change the GPS status - Alterar o Status do GPS
Débuté par adrianoboller, 24 nov. 2014 12:50 - Aucune réponse
Membre enregistré
3 657 messages
Popularité : +175 (223 votes)
Posté le 24 novembre 2014 - 12:50
Procedure GPS_AlterarStatus(LOCAL Status, LOCAL WindowSN)

// Status = "GPS Enabled" , "GPS Disabled" , "GPS off service" , "GPS Unavailable" , "GPS available"

// Finalidade: Alterar o Status do GPS

GPSStatus(Status)

sRetorno is string = ""

IF GPSStatus() = gpsEnabled THEN
IF WindowSN = "S" THEN
Info("Gps habilitado")
END
sRetorno = "Gps habilitado"
ELSE IF GPSStatus() = gpsDisabled THEN
IF WindowSN = "S" THEN
Info("Gps desabilitado")
END
sRetorno = "Gps desabilitado"
ELSE IF GPSStatus() = gpsOffService THEN
IF WindowSN = "S" THEN
Info("Gps sem serviço")
END
sRetorno = "Gps sem serviço"
ELSE IF GPSStatus() = gpsUnavailable THEN
IF WindowSN = "S" THEN
Info("Gps indisponível.")
END
sRetorno = "Gps indisponível."
ELSE IF GPSStatus() = gpsAvailable THEN
IF WindowSN = "S" THEN
Info("Gps disponível.")
END
sRetorno = "Gps disponível."
END

RESULT(sRetorno)