Include external file into dxl Script

Hello,

is it possible to include an external file in a dxl Script?

In my dxl Script I want to call an external file, witch gets information (numbers) from a different tool.
In addition I want to readout these information and add it to my dxl Script/ my Doors Module.

The hole thing sounds very difficult to my, to integrate into a dxl Script.
That is why I ask you, if anybody worked with a solution like this before
or anybody knows if this is possible in principle?

Thanks in advance.
Teka
Tekka - Wed Sep 29 07:16:20 EDT 2010

Re: Include external file into dxl Script
llandale - Wed Sep 29 10:52:43 EDT 2010

If the 'external file' is DXL code itself (containing library functions) then use the #include statement:

#include <c:\Folder\SubFolder\LibraryDXL.inc>
#include "c:\Folder\SubFolder\LibraryDXL.inc"


Relative paths are allowed as per 'addins' but its hard to explain.

If the 'external file' is some sort of data, you can read it into your program like this:

 

string FileContents = readFile("c:\\Folder\\SubFolder\\LibraryDXL.inc")



If the 'external file' are really commands to some other application, perhaps VBA, then I've struggled through that once but someone else will need to chime in and help



 

 

 

  • Louie

 

 

Re: Include external file into dxl Script
Tekka - Thu Sep 30 05:39:39 EDT 2010

llandale - Wed Sep 29 10:52:43 EDT 2010

If the 'external file' is DXL code itself (containing library functions) then use the #include statement:

#include <c:\Folder\SubFolder\LibraryDXL.inc>
#include "c:\Folder\SubFolder\LibraryDXL.inc"


Relative paths are allowed as per 'addins' but its hard to explain.

If the 'external file' is some sort of data, you can read it into your program like this:

 

string FileContents = readFile("c:\\Folder\\SubFolder\\LibraryDXL.inc")



If the 'external file' are really commands to some other application, perhaps VBA, then I've struggled through that once but someone else will need to chime in and help



 

 

 

  • Louie

 

 

Thank you for the quick reply.
And yes, my external file should contain commands to a other application.

...If the 'external file' are really commands to some other application, perhaps VBA, then I've struggled through that once...

Do you mean this is possible?

HOW this is possible is not soo important for me now. Firstly I'd only like to know if it is really possible or not.