The following example works well with salflibc.dll dated 2019-12-29. After installation of FTN95 version 8.70 the new salflibc.dll is dated 2020-11-17. Since then the filename in the %rs control is not refreshed after return from the call back function with return value 1.
Please try the following example with old and new salflibc.dll:
Program Example Implicit None
Character (len=50) :: FileName Common FileName
Integer :: i Integer, External :: iii, xxx
FileName = 'C:\00 Sonstige\03 Thomas\Example.f90' i = WINIO@('%mn[&File]&',iii) i = WINIO@('%mn[&Exit]&',xxx) i = WINIO@('%1nlFileName:%ta&') i = WINIO@('%tc[red]%`50rs%tc&',FileName,-1) i = WINIO@('%1nl') End
Integer Function iii() Implicit None Character (len=50) :: FileName Common FileName FileName = 'X:\123\Test.txt' iii = 1 end
Integer Function xxx() Implicit None xxx = 0 end