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 

%rf with format specifier

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



Joined: 30 Aug 2007
Posts: 24
Location: munich

PostPosted: Tue Dec 04, 2018 9:12 am    Post subject: %rf with format specifier Reply with quote

I created a very simple example to get familiar with the new Format specifier for %rf :

Code:
program rf_format
implicit none
integer          :: iw
double precision :: d_input
d_input = 1.23d0
iw=winio@('%rf[fmt=0.4e]&',d_input)
iw=winio@('%bt[OK button]')
END


When I run the program and try to edit the variable, I get a program crash with "Stack Overflow".
The program runs fine, if I omit the format specifier.
Any Ideas?

Ralf
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5584
Location: Salford, UK

PostPosted: Tue Dec 04, 2018 10:14 am    Post subject: Reply with quote

Yes it does fail with your test program. It was designed with %co[check_on_focus_loss] in mind. I have fixed the bug but the new feature will need further work assuming that it is possible to make it work satisfactorily without %co[check_on_focus_loss].
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5584
Location: Salford, UK

PostPosted: Tue Dec 04, 2018 4:25 pm    Post subject: Reply with quote

This has now been fixed so that it will work satisfactorily without %co[check_on_focus_loss] but the resulting behaviour is not entirely satisfactory because it means that the format for the number is applied with each key press.

It might be less confusing all round if %rf[fmt=...] was made to imply %co[check_on_focus_loss].
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