>Is it odd that when I run an executable, then in it I "set defa to d:\someotherdir" then I get the message 'processfunds.scx does not exist"?
>I thought the executable was in memory.
VFP seems to keep the included files (whatever you see in the project manager) as files in a virtual directory, and it calculates their positions relative to the current directory when the exe is launched.
Maybe just keeping that directory included in the path would make it able to find components even when you change the directory? You can try to
lcCurdir=set("directory")
lcPath=set("path")
set path to (lcCurDir+", "+lcPath)
or something like that.