View previous topic :: View next topic |
Author |
Message |
Ralf
Joined: 30 Aug 2007 Posts: 50 Location: munich
|
Posted: Tue Dec 04, 2018 9:12 am Post subject: %rf with format specifier |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Tue Dec 04, 2018 10:14 am Post subject: |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Tue Dec 04, 2018 4:25 pm Post subject: |
|
|
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 |
|
|
|