home *** CD-ROM | disk | FTP | other *** search
- /*
- DATADIR.PRG - Function returns the name of a database file directory.
-
- DATADIR() returns a path spec for storing database 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
- "DATADIR"
-
- SWITCHES: /n /w /m
-
- Copyright (c) 1990; The DSW Group, Ltd.
- All Rights Reserved
-
- */
- *...........................................................................
- // DataDir() -> cPathSpecForDataFiles
-
- FUNC DataDir()
- STATIC pathspec
- IF (pathspec==NIL) // Only do this the first time
- pathspec:= GETE("DATADIR") // Get the path from DOS env
- ENDIF
- RETURN(pathspec)
-
- *...........................................................................
- * EOF: DATADIR.PRG