Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

[wm21 - android] Bugs structure type variable

$
0
0
I declare 2 structure in project code where I use as returnvalue

R_item is Structure
exit_val is boolean
item_code is string
item_ref is string
END

R_pay is Structure
exit_val is boolean
Amount_paid is currency
END


////////////////// in closing child of window ///////////////////////////////////

SWITCH MyChildWindow..Name
CASE "WIN_Item"
m_r is R_item
m_r = MyChildWindow..ReturnedValue

IF m_r.exit_val = True THEN
////// do something
END
CASE "WIN_Pay"
m_r is R_Pay
m_r = MyChildWindow..ReturnedValue
IF m_r.exit_val = True THEN
/// do something
END

OTHER CASE

END


-----------------------------------------------------------------------------------------------

after closing of win_item , I open win_pay. after closing win_pay . I get cast error R_pay to R_item . this mean that the local variable m_r somehow still exist.

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>