PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
View the current version that is on Google Play - Consultar a versao atual que está no Google Play
View the current version that is on Google Play - Consultar a versao atual que está no Google Play
Started by adrianoboller, Nov., 24 2014 12:29 PM - 1 reply
Connect yourself…
adrianoboller
#1
Registered member
3,659 messages
Popularité : +175 (223 votes)
Posted on November, 24 2014 - 12:29 PM
Procedure
XMLGooglePlayVersao
(
)
// 1 2 3 4 5 6 7 8
//123456789012345678901234567890123456789012345678901234567890123456789012345678901234
//Atualizado em:</dt><dd><time itemprop="datePublished">14 de Maio de 2013</time></dd>
//Versão atual</dt><dd itemprop="softwareVersion">0.0.156.0</dd><dt itemprop=
posini
,
posfim is
int
=
0
XMLInfo
,
DataAtualizacao is
string
=
""
Link
is
string
=
"https://play.google.com/store/apps/details?id=com.boller.appmobile&hl=pt_BR"
IF
HTTPRequest
(
Link
) =
True
AND Link
<
>
""
THEN
//Transfere o resultado para a variavel XMLInfo
XMLInfo
=
HTTPGetResult
(
)
//Data
posini
=
PositionOccurrence
(
XMLInfo
,
"Atualizado em:"
,
firstRank
,
IgnoreCase
) +
55
posfim
=
PositionOccurrence
(
XMLInfo
,
"</time></dd>"
,
firstRank
,
IgnoreCase
)
DataAtualizacao
=
Middle
(
XMLInfo
,
posini
,
posfim
-
posini
)
//
HReadSeekFirst(T008_Config,T008_Config.codigo008,22)
//
IF HFound(T008_Config) = True AND T008_Config.valor008 <> DataAtualizacao
//
T008_Config.valor008 = DataAtualizacao
//
HModify(T008_Config)
//
Info("Existe uma versão nova do aplicativo a ser baixada")
//
ExecutePresetAction(actRunInternetSite, Link)
//
EndProgram()
//
END
END
Report
0
0
adrianoboller
#2
Registered member
3,659 messages
Popularité : +175 (223 votes)
Posted on November, 24 2014 - 12:29 PM
HReadSeekFirst
(
T008_Config
,
T008_Config.codigo008
,
22
)
IF
HFound
(
T008_Config
) =
True
AND
T008_Config.valor008
<
>
DataAtualizacao
T008_Config.valor008
=
DataAtualizacao
HModify
(
T008_Config
)
Info
(
"Existe uma versão nova do aplicativo a ser baixada"
)
ExecutePresetAction
(
actRunInternetSite
,
Link
)
EndProgram
(
)
END
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text