Previous Topic: EnvExport - Export the Environment to a Text FileNext Topic: EnvGetNext - Retrieve the Name of the Subsequent Environment Variables


EnvGetFirst - Retrieve the Name of the First Environment Variable

Valid on UNIX and Windows

The EnvGetFirst function retrieves the first environment variable name.

Function format:

EnvGetFirst() as string

Defines a string containing the name of the first environment variable returned. If no more environment variables exist, an empty string is returned.

Example:

This example displays all the environment variable names.

Dim txt as String

txt = EnvGetFirst()
While txt <> ""
 Print(txt)	
 txt = EnvGetNext()
Wend