PDA

View Full Version : #include and compiler variable



LoboMgr
02-08-2006, 12:12 PM
Can you embed a compiler variable into a #include?
e.g.

#set compiler variable [SCRIPTDIR] = D:\SB5_Projects
#include script "[SCRIPTDIR]\Test.sbi"

The compiler is throwing an error because [SCRIPTDIR] does not get expanded.

linder
02-09-2006, 01:07 AM
Hello,

Thank you for your message.

Unfortunately, this is not possible because compiler variables are resolved at compile time. The IDE displays all included script in the script editor and the compiler variable cannot be resolved.

See: http://www.lindersoft.com/forums/showthread.php?p=4404#poststop

Thanks,