Srigopal007
I'd like to take a stab at answering your question.
I re-read the PBP manual on INCLUDES and what I learned supports what Melanie was saying earlier, where she "jumps" to her "Main:" program. Tell me if I'm right Melanie :-)
The assembler inserts the statements from your INCLUDED file in exactly the location where the "INCLUDE myfile.bas" is placed in your main file. That means, that if the INCLUDE statement is placed at the beginning of your program, the program will run those statements first, in the order that they appear in myfile.bas.
That's probably not too good.
Melanie likes to put INCLUDE files near the top of her program but then places a 'Jump' statement before the INCLUDE to re-direct the program to skip over the INCLUDE to get to her main program.
Or, you can put the INCLUDE file at or near the bottom of your main file.
How'd I do Melanie? Do I pass?
Ross
Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!
I like that! :-)
Bookmarks