Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: Information and Control
See also: getenv library

Function: setenv
Description: setenv sets one of the environment variables (xpl4home, xpl4data, xpl4help, xpl4prog, xpl4backup, format, stringformat, browser, outheadline, outlayerline, outlineno) format sets the output format used by the printf of the C library.


Usage: setenv (envname, newval)
Input:
envname name of the environment
"xpl4data"
standard directory for loading (reading) data
"xpl4lib"
standard directory for loading librarys
"xpl4dll"
directory, used by dlopen, to load a dynamically linked library
"xpl4help"
used by starting the HTML-browser
"xpl4prog"
standard directory for the program file selection
"xpl4backup"
directory to back up program files
"xpl4outlib"
directory for writing quantlibs (not used)
"xpl4outdata"
directory for writing data
"xpl4outhelp"
directory for user taylored APSS (not used)
"xpl4outheadline"
defines the headline of matrix outputs in the output window
"xpl4outlayerline"
defines the headline of array outputs in the output window
"xpl4outlineno"
defines the line numbers of matrix outputs in the output window
"xpl4outmaxdata"
defines the number of maximal data items in the output window
"browser"
defines the WWW browser started from XploRe (under Windows this is the default browser)
"startup"
defines the name of the startup file
"port"
defines the portnumber used (only XploRe server)
"maxClients"
defines the maximal number of clients (only XploRe server)
"outputformat"
controls the numerical output. Syntax like C's printf
"stringformat"
controls the textual output. Syntax like C's printf
"browser"
sets the HTML-browser for the help system
"outheadline"
sets the headline of an array in the standard output
"outlayerline"
sets the layerindex of an array in the standard output
"outlineno"
sets the line number of an array in the standard output dard refe
newval new value (e.g., name of a directory)

Note:

Example:

setenv ("xpl4data", "/user/haerdle/project1/data")
setenv ("format", "%10.2f")
Result:

data are read from /user/haerdle/project1/data
numbers are printed rounded to two digits
Example:

setenv ("outheadline", "")
x = normal(3,3,3)
x
Result:

the array is displayed without the standard header "contents of x"
Example:

setenv ("outheadline", "")
setenv ("outlayerline", "")
setenv ("outlineno", "")
x = normal(3,3,3)
x
Result:

the array is displayed without the standard header "contents of x" without the array lineno (e.g. "[1,]", etc.) and without the layer index (e.g."[,,1,1,1,1,1,1]", etc.)

Group: Information and Control
See also: getenv library

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

(C) MD*TECH Method and Data Technologies, 28.6.1999