PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
WX - BuscaConfigStatus e BuscaConfigValor
WX - BuscaConfigStatus e BuscaConfigValor
Started by BOLLER, Feb., 19 2018 6:46 PM - No answer
Connect yourself…
BOLLER
#1
Registered member
3,651 messages
Popularité : +175 (223 votes)
Posted on February, 19 2018 - 6:46 PM
Procedure
BuscaConfigStatus
(
Descricao
)
tempo_ocioso
=
0
b
Status
is boolean
=
False
IF
Descricao
<
>
""
THEN
HReset
(
t000_config
)
IF
HReadSeek
(
t000_config
,
t000_descricao
,
Descricao
,
hIdentical
) =
True
THEN
IF
HFound
(
t000_config
) =
True
b
Status
=
t000_config.t000_status
END
ELSE
//Nao existe cria a configuração
t000_config.t000_descricao
=
Descricao
t000_config.t000_valor
=
"SIM"
t000_config.t000_status
=
True
HAdd
(
t000_config
)
b
Status
=
True
END
END
RESULT
(
b
Status
)
Procedure
BuscaConfigValor
(
Descricao
)
tempo_ocioso
=
0
s
Valor
is string
IF
Descricao
<
>
""
THEN
HReset
(
t000_config
)
IF
HReadSeek
(
t000_config
,
t000_descricao
,
Descricao
,
hIdentical
) =
True
THEN
IF
HFound
(
t000_config
) =
True
s
Valor
=
t000_config.t000_valor
END
ELSE
//Nao existe cria a configuração
t000_config.t000_descricao
=
Descricao
HAdd
(
t000_config
)
END
END
RESULT
(
s
Valor
)
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Report
0
0
→ Go back to WINDEV 25
WINDEV 25
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