Observed: If %ud appears on the following winio@() line, the data is not attached to the previous control. This should display a value of 10 when the menu item is selected.
winapp integer,external:: a integer i i = winio@('%mn[Test]%ww',a) i = winio@('%ud',10) end integer function a() use mswin integer i,handle handle = clearwin_info@('FOCUS_WINDOW') I = GET_USER_DATA@(HANDLE) !i = clearwin_info@('USER_DATA') print *,i a = -1 return end
Question: A %mn is not a control, yes? I tried attaching the %ud to the menu item, and the value was returned as 0 (i.e. no data attached to the control).
Stated another way, if the %ww and %mn are interchanged, the data is still attached to the %ww.
Bill