Include BS2 files in a Master BS2 ?
John Kauffman
Posts: 653
I've searched PBASIC help and the Parallax site without success...
I have several small utility BS2s whose subs I would like available in a larger master BS2.
In SX/B I can use LOAD to copy the utility files into the master file.
Is there anything similar in Pbasic?
·
I have several small utility BS2s whose subs I would like available in a larger master BS2.
In SX/B I can use LOAD to copy the utility files into the master file.
Is there anything similar in Pbasic?
·
Comments
In one word, no. Is copy-and-paste a problem? The PBASIC IDE supports multiple programs, each with a tab.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Programming can't be all that difficult, it's nothing but 1's and 0's
Copy&paste works but in other languages I like to have my utilities stored as a single copy so that updates to the utility can be done in one place rather than having to update dozens of master programs.
Thanks.
But, assuming this is the case, what you could do is come up with a conditionally-compiled, omnibus boilerplate file that includes your entire library, and which gets pasted at the end of your main code. At the top, you can set those compile-time constants that allow only the needed subroutines to be compiled with your program.
-Phil