AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones del sistema
  • Search
  • Equivalence
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Returns the environment variables of the operating system for the current computer.
Remark: To view and/or modify the current workstation's environment variables, open the Control Panel and click on the "System" icon.
Ejemplo
// Connaître toutes les variables d'environnement du système d'exploitation
ResEnvironnement = SysEnvironment()
// Connaître les variables d'environnement du système d'exploitation
Trace(SysEnvironment("homepath"))
// renvoie par exemple: 
// homepath=\Users\doc
Sintaxis
<Result> = SysEnvironment([<Environment variable>])
<Result>: Character string
  • Full environment of current computer (or server) if no <Environment variable> is specified. The environment lines are separated by CR characters.
  • Environment line whose first word corresponds to the <Environment variable> parameter.
  • Empty string ("") if a problem occurred.
<Environment variable>: Optional character string
Variable to find in the environment of the current computer ("PATH" or "USERNAME" for instance).
Observaciones

Search

  • The search on the <Environment variable> parameter is generic. For example, SysEnvironment("PR") returns the line corresponding to the prompt (if it exists in the environment).
  • If several lines match the search, only the first one is returned.

Equivalence

SysEnvironment returns the same result as the SET command of the DOS command line.
Componente: wd300std.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Needs examples
The text implies that the name is returned, but it is more than that.

SysEnvironvmen("HOMEPATH") returns the string "HOMEPATH=\user\user-name"
Bob
20 07 2021

Última modificación: 02/10/2024

Señalar un error o enviar una sugerencia | Ayuda local