PropBASIC - LOAD with path?
simonl
Posts: 866
@Bean: Would it be possible to let the LOAD statement determine where to load a file from? e.g.
LOAD "C:\My PropBASIC files\my-file.pbas"At the moment I don't know where I need to put helper files
Comments
Do library files HAVE to be in the same location as the .pbas I'm working on?
Yeah, they have to be in the same directory as the main file.
[edit] To do load file properly is pretty complicated. You need to use a lot IFDEF compiler directive and keep track of what routines use other routines.
If you are just getting started with PropBasic I would stay away from LOAD files until you are more comfortable with it.
Bean
Thanks for the swift reply. I hear ya'. Shame though - I'd like to use LOAD for helper code that's already debugged (e.g. some of the ones Jon McPhalen provided a while back). It seems a shame to have to copy these to each of my working folders each time. At least I know why now
I love PropBASIC