Silverfrost Forums

Welcome to our forums

%ud observations

17 Jan 2020 9:50 #24895

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

18 Jan 2020 7:38 #24896

Bill

The initial problem is a missing & after %ww.

18 Jan 2020 2:55 #24897

OOPS! Thanks for being kind, Paul.

Please login to reply.