http://www.picbasic.co.uk/forum/showthread.php?t=2108
I use includes like this:
Then in INC_SUB.INCCode:'main .pbp code here INCLUDE "INC_SUB.INC" 'define variables for main .pbp start: 'place for include file to return to 'etc etc ... all code below gosub sub_a gosub sub_b
probably a better way to do it, but it works.Code:'define variables for INC_SUB.INC (whatever your include file is called) goto start 'this jumps back to the beginning of your main .pbp file. 'otherwise it would start to try to run your subroutines at power up 'all your subroutines below here sub_a: 'a code goes here return sub_b: 'b code goes here return




Bookmarks