GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV Mobile 2024
→
WinDev Mobile 18 A value should have been returnd by 'OpenChild"
WinDev Mobile 18 A value should have been returnd by 'OpenChild"
Iniciado por rob, set., 18 2014 8:42 PM - 4 respostas
Conecte-se…
rob
#1
Membro registado
105 mensagems
Publicado em setembro, 18 2014 - 8:42 PM
Heya everyone.
Quick question here.
In my WinDev Mobile app for Windows CE, I'm trying to call a window that returns a value as a parameter.
s
Result
=
OpenChild
(
WIN_
RadioQuestion
,
arr
Questions
[x]
:
Question
)
And in my child window I have the following code on a button.
s
Value
=
"Y"
And then that button is set to the action "Code, then Close the window and return a value" With that value being set to sValue.
What's happening is the program isn't waiting for the window to be responded to.
It immediately errors out saying that no value was returned instead of waiting for the user to press one of the 3 buttons.
What am I doing wrong?
Denunciar
0
0
rob
#2
Membro registado
105 mensagems
Publicado em setembro, 18 2014 - 9:04 PM
Ok,
So I've tried using the Special Case method for WinDev Mobile 18, however that still doesn't wait for a user response.
Denunciar
0
0
rob
#3
Membro registado
105 mensagems
Publicado em setembro, 18 2014 - 9:18 PM
Also I've tried using Events to pause the execution of the code while the child window is open. No luck there either.
EventCreate
(
"ChildWait"
,
eventManual
,
eventClose
)
EventWait
(
"ChildWait"
,
10000
)
Denunciar
0
0
rob
#4
Membro registado
105 mensagems
Publicado em setembro, 18 2014 - 9:57 PM
Ok, for anyone else who runs into this, the function you want to use is OpenPopup()
Denunciar
0
0
Facu
#5
Publicado em dezembro, 03 2019 - 1:25 PM
Thanks you Rob! You are amazing!
Denunciar
0
0
→ Voltar para WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto