Problem with include in if-statement
Posted: Thu Nov 17, 2016 5:07 am
Hello!
I sometimes use "Include" to include another EViews-program in a main EViews-program. It works just fine except when you use it in an if-statement, for example like this
If ..... Then
Include "C:\Temp\Example.prg"
EndIf
Then you get the error message "Endif found outside of loop or IF statement". The code will run without error if you include it without putting it in the if-statement, and it works fine if you change "Include" to "Run" or "Exec" instead.
I just wonder if this may be a bug?
Best regards,
Pelle
I sometimes use "Include" to include another EViews-program in a main EViews-program. It works just fine except when you use it in an if-statement, for example like this
If ..... Then
Include "C:\Temp\Example.prg"
EndIf
Then you get the error message "Endif found outside of loop or IF statement". The code will run without error if you include it without putting it in the if-statement, and it works fine if you change "Include" to "Run" or "Exec" instead.
I just wonder if this may be a bug?
Best regards,
Pelle