• 2 replies
  • Latest Post - ‏2014-07-31T14:39:12Z by MattMar
1 Post

Pinned topic Can a DXL call other dxl files?

‏2014-07-25T08:58:53Z | dxl


I have a lot of differt  dxl files witch I must call very offten.

Is it possible that I call from one dxl - file more other dxl- files?

Other possibility is that I call a at the end of a dxl file the next one.

Is this also possible?

In both cases are the resultfiles independent from each other



  • Tony_Goodman
    271 Posts

    Re: Can a DXL call other dxl files?


    You don't call other dxl files, rather you call funtions contained in other dxl files.

    Place your commonly used functions in *.inc files and #include those files in your main DXL script.


  • MattMar
    11 Posts

    Re: Can a DXL call other dxl files?



    The anwser given by Tony_Goodman is the best and nicer way to do what you want. I would add that a call to the #include directive will act exactly as if you had copy/pasted your included file instead. No real subtility here, you can include whatever file you want anywhere in your DXL file, if your included file contains DXL code, it will be called.

    So, small example,

    If you have a file with the following content:


    you can execute the following code:

    print #include <the_above_file>

    and it will works (print "ok").




    Updated on 2014-07-31T14:42:35Z at 2014-07-31T14:42:35Z by MattMar