They get placed, line by line, exactly where you put the INCLUDE statement. If you you have variables declared inside the included file which you are trying to use "before" actually including the file you'll get errors.
If the following is placed in an include fileAnd your complete program looked like this:Code:myVAR VAR BYTE TestIt: HSEROUT["This is a test",13] High PortB.0 RETURNIt would be exactly the same asCode:INCLUDE "myIncludeFile.pbp" Start: Low PortB.0 GOSUB TestIt Pause 1000 Goto StartSee? The INCLUDE statements just takes the content of the file and places it, line by line, "inplace" of the actual INCLUDE statement - that's it.Code:myVAR VAR BYTE TestIt: HSEROUT["This is a test",13] High PortB.0 RETURN Start: Low PortB.0 GOSUB TestIt Pause 1000 Goto Start




Bookmarks