Shop OBEX P1 Docs P2 Docs Learn Events
PropBASIC - LOAD with path? — Parallax Forums

PropBASIC - LOAD with path?

simonlsimonl Posts: 866
edited 2012-06-09 14:20 in Propeller 1
@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

  • simonlsimonl Posts: 866
    edited 2012-06-09 09:05
    Hmm, seems I've bumped up against this issue again, now that I'm starting to use PropBASIC again :(

    Do library files HAVE to be in the same location as the .pbas I'm working on?
  • BeanBean Posts: 8,129
    edited 2012-06-09 11:24
    Simon,
    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
  • simonlsimonl Posts: 866
    edited 2012-06-09 12:56
    Hi 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 :)
  • simonlsimonl Posts: 866
    edited 2012-06-09 14:20
    Aha! Seems I can specify the full path - YAY! (Dunno why I didn't try that before).

    I love PropBASIC :)
Sign In or Register to comment.