*!*****************************************
*!
*! Function: ISDIR
*!
*!*****************************************
*PROCEDURE isdir
PARAMETERS pcDirectory && Directory to check
LOCAL lcCurDir, ;
llError, ;
lcOnError
lcCurDir=SYS(5)+CURDIR()
llError=.F.
lcOnError=ON("ERROR"
ON ERROR llError=.T.
SET DEFAULT TO (ALLTRIM(pcDirectory))
SET DEFAULT TO (lcCurDir)
ON ERROR &lcOnError
IF EMPTY(pcDirectory)
llError = .T.
ENDIF
RETURN NOT llError
note on al's post, i use the getdir() funtion in a lot of programs and have found that until your users get used to its appearence they get VERY confused.
I want to write an instal program that prompts a users to enter a directory (using fox26DOS).
- I want to check if the directory exist.
- Also, once the installation is complete, I want to write an option that'll check for the DIR where the main .exe file is. The procedure should then return this DIR. How Guys?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.