Hello everybody,
I am converting a program from CVF 6.6 to IVF 11.1 and I am looking for an equivalent to this part of the code below :
1. What library should I call instead of MSFLIB ? Should I modify the functions used in the program FULLPATHQQ, ... ?
2. This program is used to open a data file named "inputData.txt", if this file does not exist in the correct directory, the line 15 (err=9001) call a window which allow to search fo a file manually (the same "open with" window that we have generally in all programs).
3. How can I change lines 15,16 ?
Thank you
- USE msflib
- CHARACTER($MAXPATH) pathin
- CHARACTER($MAXPATH) filein
- CHARACTER(2) drive
- CHARACTER($MAXPATH) dir,workdir
- CHARACTER($MAXPATH) namein
- CHARACTER(4) ext
- INTEGER*4 leng1,leng2,leng3
- LOGICAl(4) result
- ienter=1
- OPEN (ienter,FILE='inputData.txt',status='old',err=9001)
- call Function
- goto 1
- 9001 open(ienter,file='',status='old',err=9000)
- INQUIRE(ienter,name=filein)
- leng1=FULLPATHQQ(filein,pathin)
- IF(leng1.EQ.0)STOP
- IF(leng1.GT.0)THEN
- leng2=SPLITPATHQQ(pathin,drive,dir,namein,ext)
- IF(leng2.EQ.0)THEN
- WRITE(*,*) 'Can''t split path'
- STOP
- ENDIF
- ELSE
- WRITE(*,*)'Can''t get full path'
- STOP
- ENDIF
- RETURN
- 9000 WRITE(*,*) 'Reading error'