PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → 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"
Débuté par rob, 18 sep. 2014 20:42 - 4 réponses
Membre enregistré
105 messages
Posté le 18 septembre 2014 - 20:42
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.
sResult = OpenChild(WIN_RadioQuestion, arrQuestions[x]:Question)


And in my child window I have the following code on a button.
sValue = "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?
Membre enregistré
105 messages
Posté le 18 septembre 2014 - 21:04
Ok,

So I've tried using the Special Case method for WinDev Mobile 18, however that still doesn't wait for a user response.
Membre enregistré
105 messages
Posté le 18 septembre 2014 - 21:18
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)
Membre enregistré
105 messages
Posté le 18 septembre 2014 - 21:57
Ok, for anyone else who runs into this, the function you want to use is OpenPopup()
Posté le 03 décembre 2019 - 13:25
Thanks you Rob! You are amazing!