Wilfred,
It is not as easy as that because only %rs, %rd & %rf formats can be used, despite the %rb appearing to work.
Here is a bit of code that does work, but it is a bit longwinded.
winapp
program test
IMPLICIT NONE
INCLUDE <WINDOWS.INS>
integer*4 j,A,B,C,D,E,F,isave
integer*4 jA,jB,jC,jD,jE,jF
common/save_data/A,B,C,D,E,F,jA,jB,jC,jD,jE,jF,isave
character*120 ifile,ofile
external iclose,jsave
ifile = ' '
ofile = 'result'
A = 0
B = 1
C = 0
D = 0
E = 1
F = 0
isave = 0
c
c read old via a disappearing window
j = winio@('%ss[setup/start]&',isave)
j = winio@('Image%rs&',ifile)
j = winio@('%ffProject%rdCurrent%rdAll%rd&',D,E,F)
j = winio@('%ffNone%rdMean%rdMedian%rd&',A,B,C)
j = winio@('%ffOutput%rs&',ofile)
j = winio@('%sc',iclose)
print *,'D,E,F,A,B,C read from file'
print*,D,E,F,A,B,C
ja = a
jb = b
jc = c
jd = d
je = e
jf = f
c
c display options for changes to be made
j = winio@('%ca[Interpolation]%sy[3d_thin]%fn[MS SANS SERIF]%ts'
* //'%ob[named_l][Input image]'
* //'Image%40rs%cb%ff%nl%ob[named_l][Parameters]&',.96D0,ifile)
j = winio@('%3ga&',jD,jE,jF)
j = winio@('Limits%ta%rb[Project] '
* //'%ta%rb[Current] '
* //'%ta%rb[All]&',jD,jE,jF)
j = winio@('%ff%nlFilter%3ga&',jA,jB,jC)
j = winio@('%ta%rb[None]'
* //'%ta%rb[Mean]'
* //'%ta%rb[Median]%cb&',jA,jB,jC)
j = winio@('%ff%nl%ob[named_l][Output image]'
* //'Output%40rs%cb&',ofile)
j = winio@('%ff%nl%cn%`7bt[OK]%^7bt[Cancel]','EXIT')
print *,'D,E,F,A,B,C as updated'
print*,jD,jE,jF,jA,jB,jC
c
c save new via a disappearing window which exists briefly but is invisible
isave = 1
j = winio@('%ww[invisible]&')
j = winio@('%ss[setup/start]&',isave)
j = winio@('Image%rs&',ifile)
j = winio@('%ffProject%rdCurrent%rdAll%rd&',D,E,F)
j = winio@('%ffNone%rdMean%rdMedian%rd&',A,B,C)
j = winio@('%ffOutput%rs&',ofile)
j = winio@('%sc%dl',jsave,0.1d0,iclose)
print*,D,E,F,A,B,C
end
integer*4 function iclose()
iclose = 0
end
integer*4 function jsave()
integer*4 A,B,C,D,E,F,isave
integer*4 jA,jB,jC,jD,jE,jF
common/save_data/A,B,C,D,E,F,jA,jB,jC,jD,jE,jF,isave
jsave = 1
if(isave .eq. 1)then
a = ja
b = jb
c = jc
d = jd
e = je
f = jf
endif
end
It also appers that spaces are not removed from the %rb format codes. It is necessary to have some text before your %rs codes. It might also be a good idea to call the file something other than 'Setup' as this is a very common name and you might conflict with something else which already exists.
Regards
Ian