soccer jersey forums.silverfrost.com :: View topic - Garbage returned by clearwin_string@('CURRENT_MENU_ITEM')
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Garbage returned by clearwin_string@('CURRENT_MENU_ITEM')

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
rudnei



Joined: 29 Dec 2011
Posts: 36

PostPosted: Wed Oct 17, 2012 7:03 pm    Post subject: Garbage returned by clearwin_string@('CURRENT_MENU_ITEM') Reply with quote

Hi,
I have been trying (unsuccessfully) to use clearwin_string@('CURRENT_MENU_ITEM') but it returns garbage when I try to find out which menu item has been selected.

The code that creates the entries is:

character(len=129) :: legenda
type (bcdesc), pointer :: q

n_itens_cf_espec = 0
q => bclist
do while (associated(q))
n_itens_cf_espec = n_itens_cf_espec+1
write(legenda,'(I3," : fronteira ",A1,", variavel ",A1)')n_itens_cf_espec,q%boundary,q%boundary_variable
call add_menu_item@(handle_menu_cf_espec,legenda,1,0,altera_cf_espec)


where handle_menu_cf_spec is an integer declared on a module which is used by appropriate subprograms.

The code that checks for the menu item is just

character(len=129) :: item

item = ' '
item = clearwin_string@('CURRENT_MENU_ITEM')


I am using FTN95 6.30 under Windows 7... any ideas?
Back to top
View user's profile Send private message
rudnei



Joined: 29 Dec 2011
Posts: 36

PostPosted: Wed Oct 17, 2012 8:22 pm    Post subject: Reply with quote

Did some more testing, and found out that if I take the subroutine/functions where those two pieces of code are out of the MODULE, and treat them as external subprograms, then every thing works as expected!!!

Surely some sort of bug in the compiler...

Cheers,
Rudnei
Back to top
View user's profile Send private message
rudnei



Joined: 29 Dec 2011
Posts: 36

PostPosted: Wed Oct 17, 2012 8:32 pm    Post subject: Reply with quote

Ah, salflibc.dll version is 14.5.14.22
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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