PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → 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"
Started by rob, Sep., 18 2014 8:42 PM - 4 replies
Registered member
105 messages
Posted on September, 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.
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?
Registered member
105 messages
Posted on September, 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.
Registered member
105 messages
Posted on September, 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)
Registered member
105 messages
Posted on September, 18 2014 - 9:57 PM
Ok, for anyone else who runs into this, the function you want to use is OpenPopup()
Posted on December, 03 2019 - 1:25 PM
Thanks you Rob! You are amazing!