Geoffroy77
Programmer
I am interrested by the previous thread :
"How to use variable with OPEN() or NEXT() ... etc ?"
thread192-478960
But It does NOT work.
Here what I am trying to do :
VariableFile PROCEDURE
MyFILE &FILE
MySTRING STRING(20)
CODE
MySTRING = 'Calendar'
! An existing file in the dictonary
MyFILE &= (MySTRING)
!Without paenthesis : compilation error !
OPEN(MyFILE) !Program crash here
SET(MyFILE)
LOOP
NEXT(MyFILE)
IF ERRORCODE() THEN BREAK.
!Dynamically access the differents fields of MyFILE => this part work
END
Could you help please ?
"How to use variable with OPEN() or NEXT() ... etc ?"
thread192-478960
But It does NOT work.
Here what I am trying to do :
VariableFile PROCEDURE
MyFILE &FILE
MySTRING STRING(20)
CODE
MySTRING = 'Calendar'
! An existing file in the dictonary
MyFILE &= (MySTRING)
!Without paenthesis : compilation error !
OPEN(MyFILE) !Program crash here
SET(MyFILE)
LOOP
NEXT(MyFILE)
IF ERRORCODE() THEN BREAK.
!Dynamically access the differents fields of MyFILE => this part work
END
Could you help please ?