PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
WX - Carregando dados em um Combo Box via código
WX - Carregando dados em um Combo Box via código
Started by adrianoboller, May, 13 2015 10:37 PM - 1 reply
Connect yourself…
adrianoboller
#1
Registered member
3,659 messages
Popularité : +175 (223 votes)
Posted on May, 13 2015 - 10:37 PM
//Buscar
ok is
boolean
=
False
arr
Temp is
array of
string
IF
COMBO_
GarrListaCentro
..
DisplayedValue
=
"Todos"
GloCentroCusto
=
""
ELSE
GloCentroCusto
=
COMBO_
GarrListaCentro
..
DisplayedValue
END
ok
=
HExecuteQuery
(
QRY_
Select_AutorizacoesEspeciais_Filtro
,
hWithFilter
,
gn
ConvenioAdministrador
,
gn
SeqAutorzAdministrador
)
IF
ok
=
True
THEN
ArrayDeleteAll
(
arr
Temp
)
FOR EACH
QRY_
Select_AutorizacoesEspeciais_Filtro
IF
GloCentroCusto
=
""
THEN
ArrayAdd
(
arr
Temp
,
QRY_
Select_AutorizacoesEspeciais_Filtro.cod_centro_custo
)
END
END
IF
ArrayCount
(
arr
Temp
)
>
0
THEN
ArrayDeleteDuplicate
(
arr
Temp
)
ListDeleteAll
(
COMBO_
GarrListaCentro
)
ListAdd
(
COMBO_
GarrListaCentro
,
"Todos"
)
FOR EACH elemento OF
arr
Temp
ListAdd
(
COMBO_
GarrListaCentro
,
elemento
)
END
ListSelect
(
COMBO_
GarrListaCentro
,
ListSeek
(
COMBO_
GarrListaCentro
,
"Todos"
)
)
END
END
Report
1
0
adrianoboller
#2
Registered member
3,659 messages
Popularité : +175 (223 votes)
Posted on May, 13 2015 - 10:37 PM
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