Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Environ FunctionThis standard VB function returns the string setting for a keyword in the operating system's environment table. Syntax AEnviron[$](environment-string) Syntax BEnviron[$](numeric_expression) ReturnsThe string value assigned to an environment variable. UsageIf you use the environment-string argument, enter it in uppercase, or Environ returns a null string (""). The return value for Syntax A is the string associated with the keyword requested. If you use the numeric_expression argument, the numeric expression is rounded to a whole number, if necessary. The return value for Syntax B is a string in the form KEYWORD=value Environ returns a null string if the specified argument cannot be found. The dollar sign ($) in the function name is optional. If it is included, the return type is string. Otherwise the function returns a variant of vartype 8 (string). ExampleThis example lists the strings from the operating system environment table. Sub Button_Click |
Siebel VB Language Reference |