As I understand there is no way to build/construct filename that is used in #include simply because #include is a pre-processor command and happens before formula is executed. Something like this can, I guess, never work:
rootFolder = "C:\\tmp\\";
includeFolder = "include";
includeFileName = "include.afl";
includeFileName = rootFolder + "\\" + includeFolder + "\\" + includeFileName ;
_TRACE(includeFileName);
#include includeFileName;
_TRACE("Seems Include is working because no error, but, in fact, nothing is being included form the file...");
Or am I mistaken and there is some workaround to achieve this?