2017 June Release


Using Variables to Reference FilesPermanent link for this heading

To provide a higher level of flexibility Fabasoft app.ducx variables may be used as part of the file path.

Syntax

file("${<variablename>}/<pathtofilename>.<extension>")

After we added a variable IMAGE_DIRECTORY (defined in Eclipse under Windows > Preferences > Fabasoft app.ducx > Variables) containing the path to a directory, we may use the following resource code. Environment variables may be referenced, too.

Example             

resources APPDUCXSAMPLE@200.200 {
  import COOSYSTEM@1.1;
  import COODESK@1.1;
  import COOACLEDIT@1.1;

  symbol SymbolPrintInvoice {
    images<symbolimageformat, content> = {

      {
        SF_GIF16,
        file("${IMAGE_DIRECTORY}/PrintInvoice16.gif")
      }
    }
  }
}