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)

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
"xpl4outdata"
directory for writing data
"xpl4outhelp"
directory for user taylored APSS (not used)
"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
"outputstringformat"
controls the textual output. Syntax like C's printf
"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
"outmaxdata"
defines the number of maximal data items in the output window
"os"
operating system
"system"
the internal name of the operating system
"build"
the internal build number =========
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.)
Contents of unnamed object
[ 1,] "system" "i686-pc-cygwin32"
[ 2,] "os" "windows"
[ 3,] "build" "4"
[12,] "logfile" "xplore.log"
[13,] "xpl4nethome" "http://www.xplore-stat.de"
[14,] "xpl4syshome" "."
[15,] "xpl4netlib" "http://www.xplore-stat.de\\lib"
[16,] "xpl4netdata" "http://www.xplore-stat.de\\data"
[17,] "xpl4nethelp" "http://www.xplore-stat.de\\help"
[18,] "xpl4netdll" "http://www.xplore-stat.de\\dll"
[19,] "xpl4syslib" ".\\lib"
[20,] "xpl4sysdata" ".\\data"
[21,] "xpl4syshelp" ".\\help"
[22,] "xpl4sysdll" ".\\dll"
[23,] "xpl4home" "E:\\xplore\\xqms"
[30,] "xpl4outprog" "E:\\xplore\\xqms"
[31,] "xpl4outtemp" "D:\\TEMP"
[32,] "xpl4netprog" ""
[33,] "xpl4nettemp" ""
[34,] "xpl4sysprog" ""
[35,] "xpl4systemp" ""

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, 17.8.2000