Using INCLUDES, FUNCTIONS PROCEDURES and SUBROUTINES in Oshonsoft

Thread Starter

camerart

Joined Feb 25, 2013
3,831
It is the .LST file, assembler listing of the compiled Basic file with the Basic instructions as comments.
Hi J,
I can't read the .LST file, I'm only pointing to an earlier reply #110.
Even with that listing the INCLUDE is not included.
C
 

jjw

Joined Dec 24, 2013
823
Hi J,
I can't read the .LST file, I'm only pointing to an earlier reply #110.
Even with that listing the INCLUDE is not included.
C
I looked at the .LST file and the Include code is there, appended after the END statement, but not executed!

From the manual:
During the compilation process the external basic source will be appended to the current program. Multiple files can be included with separate INCLUDE directives. To maintain the overall basic code structure, it is strongly suggested that the external file contains global declarations, subroutines, procedures and functions, only.
 
Last edited:

Thread Starter

camerart

Joined Feb 25, 2013
3,831
I looked at the .LST file and the Include code is there, appended after the END statement, but not executed!

From the manual:
During the compilation process the external basic source will be appended to the current program. Multiple files can be included with separate INCLUDE directives. To maintain the overall basic code structure, it is strongly suggested that the external file contains global declarations, subroutines, procedures and functions, only.
Hi J,
Here is the INCLUDE, does it comply with the manual?
C
 

Attachments

jjw

Joined Dec 24, 2013
823
Hi J,
Here is the INCLUDE, does it comply with the manual?
C
No.
It seems, that the Include should contain only Dims ( DIM x as...), where x is a global variable, procedures, functions.
It is strange, that it is not clearly required in the manual, only strongly suggested.
 

Thread Starter

camerart

Joined Feb 25, 2013
3,831
No.
It seems, that the Include should contain only Dims ( DIM x as...), where x is a global variable, procedures, functions.
It is strange, that it is not clearly required in the manual, only strongly suggested.
Hi J,
Ok, thanks.
I tried a series of tests, and I think from the INCLUDE I included, only the DEFINES work , so I'll try some more with your suggestions.
C.
 
Top