In LAN mode, all tuUserChoice variables are getting a Boolean(.T.) value, in WEB mode, this is correct, returning the value entered in the wuValue.
Hi Arcadio
do home(1) + "\tools\ab\aw\samples\fic\fictuto\tutoLAN.prg" with 'modal'
works fine here, so I'll need more details and code excerpts.
I will record a video in the 2 modes (lan and web) to show you the moment the problem happens using the debug.
OK with related code
https://www.youtube.com/watch?v=B8yMVMy_WRs
Let me know if you need anything else. Thank you!
Hi Arcadio
For using wuValue with a modal form, you have nothing specially to do in the method form.release() . The last code must of your procedure be the call of form.release(). You must before using the form, set the form properties:
with m.thisform
.wcPropsave = "wuvalue" + iif(not empty(.wcPropsave), ',' + alltrim(.wcPropsave), '') && add wuValue into the list of properties save by FoxinCloud
.wcModalChoiceProp = "wuValue" && indicate to FoxIncloud what propertie to return after a release
.WindowType = 1 && modal form
endwith
In the methode release() of the form you must have at last line a return dodefault() or nothing (no code, the baseclass aw code will do allthings necessary) Regards
Hello Gilles
I checked what you asked for and it was already correct, it really is very strange, in web mode it works correctly.
Hi Arcadio,
Your video is fine but I could not find the reason for the bug;
adding the call stack window would probably help understand what happens.
Thanks
https://www.youtube.com/watch?v=NwctBXuVelM
See if that's better.
In cad_ina1.unLoad()
, replace dodefault()
by return dodefault()
(just after set step on
)
you check check all dodefault()
in your app. using FAA step 1-analyze
Worked, thank you! I will review the whole code, there are some things that are part of my start with FIC, which I left behind due to lack of experience.
side note: in a form and form member code you can replace wlWeb()
and wlLAN()
by thisForm.wlWeb
and thisForm.wlLAN
easier to debug!
OK! I'll change that! Thank you!
side note: in a form and form member code you can replace wlWeb() and wlLAN() by thisForm.wlWeb and thisForm.wlLAN
In form load thisform.wlweb always returns false, regardless of whether it is web or lan, now the wlweb () function returns o valor correctly in form load. That's right this?