|
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
wahorger
Joined: 13 Oct 2014 Posts: 1217 Location: Morrison, CO, USA
|
Posted: Fri Jan 17, 2020 10:50 pm Post subject: %ud observations |
|
|
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.
Quote: | 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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Sat Jan 18, 2020 8:38 am Post subject: |
|
|
Bill
The initial problem is a missing & after %ww. |
|
Back to top |
|
|
wahorger
Joined: 13 Oct 2014 Posts: 1217 Location: Morrison, CO, USA
|
Posted: Sat Jan 18, 2020 3:55 pm Post subject: |
|
|
OOPS! Thanks for being kind, Paul. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|