Description
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.
Importance
nice to have(?)
Type
Proc Code
Operating System
Not Applicable
Status
Open
Welcome to the online Uniface Community. The Uniface community site is a global communication channel for professional users of Uniface Enterprise Application Development
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.
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”)