Sometimes there is the need to get information about the environment of an application. e.g. paramters in the commandline or loaded ASN/INI-files So what about a \"simple\" UnifAce function $applinfo() ? Possible topics are \"COMMAND_LINE\" the whole command line \"ARGC\" Number of arguments passed to the application \"ARGV\" Arguments as an UIL (Uniface-Item-List) \"ASN_FILE\" Filename of the (first) ASN-File \"INI_FILE\" Filename of the (first) INI-FILE \"DLL_LST\" List (UIL) of all loaded binaries. ... $01=$applinfo(\"COMMDAND_LINE\") $01=$applinfo(\"ANS_FILE\") $01=$applinfo(\"INI_FILE\")

Use Case

To handel arguments in a better way. For Documenation reasons For maintenace reasons.


nice to have(?)


Proc Code

Operating System

Not Applicable



2 thoughts on “$applinfo()”

  1. Actually, there is $processinfo. It has the following options:
    pid, user, host, cpu, os, cmdline

    On Windows and Solaris there are also
    heapsize, stacksize,

    It doesn’t have evertything you want, but at least it gives you the commandline.
    See the uniface documentation.

  2. As of 9.6.06 $setting can give you the first user asn file, usys.asn and the ini file:

    userasn = $setting(“usys”, “[files]userasn”, “USYSDATA”)
    usysasn = $setting(“usys”, “[files]usysasn”, “USYSDATA”)
    usysini = $setting(“usys”, “[files]usysini”, “USYSDATA”)

Leave a Reply