Migration of Global Constants

In Uniface 9 global constants were defined as global objects in a dedicated editor. In Uniface 10, they are defined in a reserved IncludeScript called DEFPARAM using the #define directive.

Uniface automatically migrates global constants to an IncludeScript library, but the change in the way they are defined affects the way you subsequently export global constants.

It is no longer possible to specify constants as an object type for export in the Export form or using $ude ("export"). Consequently:

  • Exporting all objects in an IncludeScript library also exports the global constants in DEFPARAM.
  • When using $ude("export"), you will need to use the following syntax in Uniface 10:

    $ude("export", "library;include", "DEFPARM", ExportFile, "library=Library")

    The equivalent Uniface 9 command no longer works:

    $ude("export", "library;constants", "*", ExportFile, library=Library")