I used the subroutine START_PROCESS@ as a function (according to on-line help), see: https://silverfrost.com/ftn95-help/control/h_start_processa.aspx
My code for it (as a function) was:
INTEGER FUNCTION txt_sgf ()
IMPLICIT NONE
INTEGER*4 txt_sgf, button_grey_SGF, I
COMMON/txt_2_sgf/button_grey_SGF
I = START_PROCESS@('GEODBNT.EXE','')
txt_sgf = 2
END FUNCTION txt_sgf
It worked somehow, but when the external executable finished its work and I pressed exit in external EXE, I got a run-time error for my program which invoked the external process!
So, since it is declared as a INTEGER FUNCTION START_PROCESS@ in the on-line help, I added EXTERNAL STATEMENT for the function.
When I compiled it, it failed with the reason that I cannot use EXTERNAL statement with a SUBROUTINE!
Based on this, I cancelled the EXTERNAL STATEMENT and used the CALL order for the START_PROCESS@ as follows:
INTEGER FUNCTION txt_sgf ()
IMPLICIT NONE
INTEGER*4 txt_sgf, button_grey_SGF
COMMON/txt_2_sgf/button_grey_SGF
CALL START_PROCESS@('GEODBNT.EXE','')
txt_sgf = 2
END FUNCTION txt_sgf
Now, everything works fine (no run-time).
QUESTION: What is true - the on-line manual description that START_PROCESS@ is an INTEGER FUNCTION or the START_PROCESS@ is an internal subrouitine (it appears true based on my experience), which needs to be called by CALL order?
Martin