Posts: 1
Threads: 1
Joined: Jul 2004
I have a project with two subfolders: LIBBAS and LIBFILES. The files in LIBBAS use subs that are in LIBFILES. I use REM $INCLUDE : with the path to the file of interest in LIBFILES, but get constantly a message $Metacommand error.
How can I achieve that the files in LIBBAS can use subs in LIBFILES.
Thank you.
Posts: 1,439
Threads: 15
Joined: Apr 2003
Just set the LIB environment variable to the path of the LIBFILES directory. i.e., from the DOS prompt, do "SET LIB=C:\qb\LIBFILES;%LIB%"
Posts: 6,419
Threads: 74
Joined: Mar 2002
Code:
'$INCLUDE: 'LIBFILES\MYLIB.BI'
should work
Posts: 1,439
Threads: 15
Joined: Apr 2003
actually, since I think the dir structure looks like this:
rootdir\
libfiles\
libbas\
you would need to do:
Code:
' $INCLUDE: '..\libfiles\mylib.bi'
Posts: 2,771
Threads: 96
Joined: Oct 2003
Quote:Code:
' $INCLUDE: '..\libfiles\mylib.bi'
durn
you beat me to it =D
Posts: 1,439
Threads: 15
Joined: Apr 2003
blargh... I put the wrong thing in my first post - it should be the INCLUDE environment variable if you're trying to $INLCUDE files, but LIB for linking in libraries in another dir.