Hi Helmut,
thanks for assistence. For all other people, this is a working pice of code:
program self_refresh
COMMON /com/ text,IP,ID2
Character (LEN=20) text
External Routine
CALL WGINI('vert',IP)
CALL WGTXT(IP,cstr,ID1)
CALL SWGCBK(ID1,Routine)
print *,'testprint from main:',text ! would never deliver a strig
CALL WGLAB(IP,'dummy line',ID3) ! just to see something
CALL WGLAB(IP,text,ID2) ! try to write the string from manual input.
CALL WGFIN()
END
Subroutine Routine(ID1)
COMMON /com/ text,IP,ID2
Character (LEN=20) text
CALL GWGTXT(ID1,text)
print *,'Call back Routine: text=',TRIM(text)
CALL SWGTXT(ID2,text) ! try to write the string from manual input.
RETURN
END
regards,
Johannes