CT_ENVPARAM

 ENVPARAM()
 Reads the entire DOS environment table into a string
------------------------------------------------------------------------------
 Syntax

     ENVPARAM() --> cEnvironment

 Returns

     ENVPARAM() returns a string that corresponds to the complete environment
     table.

 Description

     This function returns the entire DOS environment table.  The DOS CHR(0)
     delimiter, which follows each variable and its setting, is replaced with
     CR/LF.  This allows the returned string to work well with the Clipper
     Tools string functions (especially the tokenizer).

 Note

     .  With the Clipper function GETENV(), you can query
        individual parameters from the environment.  Initially, this may seem
        convenient, but there is a problem because no blanks are allowed
        before and after the '='.

 Example

     Read in the environment and analyze it:

     cVar  :=  ENVPARAM()                           // CR/LF as delimiter
     TOKENINIT (@cVar, CHR(13) + CHR(10),2)         // CR/LF as delimiter,
     skip 2
     DO WHILE .NOT. TOKENEND()
        Env  :=  TOKENNEXT(cVar)
        ? Env
     ENDDO

See Also: TOKENINIT() TOKENNEXT()

 

Tools – System Information

Introduction System Information
BIOSDATE()   Determines the system BIOS date
BOOTCOLD()   Triggers a cold boot
BOOTWARM()   Triggers a warm start of the system
CPUTYPE()    Determines what type of microprocessor in use
DOSPARAM()   Retrieves the DOS command line as a string
ENVPARAM()   Reads the entire DOS environment table into a string
ERRORACT()   Recommends action for a DOS error that has occurred previously
ERRORBASE()  Source of the most-recent DOS error
ERRORCODE()  Identifies a DOS error that has occurred previously
ERRORORG()   Origin of the most-recent DOS error
EXENAME()    Returns name and directory of the current Clipper program
FILESFREE()  Specifies the number of files you can open
FILESMAX()   Specifies maximum number of files that can be open at one time
GETCOUNTRY() Queries country setting for the operating system
ISANSI()     Tests to see if the ANSI screen driver is installed
ISAT()       Determines if a program is running on an AT
ISMATH()     Determines if a math coprocessor is installed
MEMSIZE()    Determines size of conventional or extended memory
NUMBUFFERS() Determines the BUFFERS= setting
NUMFILES()   Determines maximum number of files you can open simultaneously
OSVER()      Returns the DOS version number
PCTYPE()     Returns the type of computer in use
SSETBREAK()  Sets and checks the DOS BREAK switch
SSETVERIFY() Sets and checks the DOS VERIFY switch