home *** CD-ROM | disk | FTP | other *** search
- /*
- INDEXDIR.PRG - Function returns the name of a index file directory.
-
- INDEXDIR() returns a path spec for storing index files.
- The idea behind this function is to provide an encapsulated
- reference to the directory where your data files will be stored.
- It *CURRENTLY* returns the value of the DOS environmental variable
- "INDEXDIR"
-
- SWITCHES: /n /w /m
-
- Copyright (c) 1990; The DSW Group, Ltd.
- All Rights Reserved
-
- */
- *...........................................................................
- // IndexDir() -> cPathSpecForIndexFiles
-
- FUNC IndexDir()
- STATIC cPathSpec
- IF (cPathSpec==NIL) // Only do this the first time
- cPathSpec:= GETE("INDEXDIR") // Get the path from DOS env
- ENDIF
- RETURN(cPathSpec)
-
- *...........................................................................
- * EOF: INDEXDIR.PRG