It seems you cannot include files like this:
Code: Select all
const #constant1="path/to/dir/"
const #constant2="filename"
@Include #constant1..#contant2
Code: Select all
const #consttest1 = (5*10) / 2
or
const #consttest2 = #consttest1 * 5
Code: Select all
const #constant1="path/to/dir/"
const #constant2="filename"
@Include #constant1..#contant2
Code: Select all
const #consttest1 = (5*10) / 2
or
const #consttest2 = #consttest1 * 5
Yes, that's currently not supported but you're right it should be supported for consistency reasons. I'll add it to the to do list.It seems you cannot include files like this:
const #constant1="path/to/dir/" const #constant2="filename"
@INCLUDE #constant1..#contant2
I wonder why this is the case, since both Strings are constants.
The name of the include file needs to be known at compile time. It is not possible to include files whose names are only known at run time.And the following seems also not possible
file1.hws:
Const #MYCONST="path/to/dir/file2.hws"
file2.hws:
@INCLUDE #MYCONST
The following error occurs then:
"The constant #myconst has already been decleared"
So, I wonder, how I can include a file whose location or name is not known before that file exists? Is there a way to dynamically include files?
Hmm, actually, I cannot reproduce this problem. It seems to work fine. Could you present more details please?So, I wonder, how I can include a file whose location or name is not known before that file exists? Is there a way to dynamically include files?
Sorry, actually, I seem to have forgotten myself what the problem was I tried to recreate the problem and I couldn't see the error message again. So, I probably did some other mistake.Hmm, actually, I cannot reproduce this problem. It seems to work fine. Could you present more details please?