home *** CD-ROM | disk | FTP | other *** search
- * Program Name: tisdir.prg *
- * Author: Don L. Powells *
- * (c) 1987 by Nantucket Corp. *
- * This program tests and demonstrates the ISDIR() assembly
- * language UDF.
-
- clear
- ? " Testing the isdir() assembly function"
- ?
- ? "Press <ESC> to quit."
- mpath=space(64)
- do while lastkey() != 27
- @ 5,0 say "Enter directory path:"
- @ 6,0 get mpath picture "@k"
- read
- mpath = trim(mpath)
- if isdir(mpath)
- @ 23,1
- @ 23,1 say "Directory exists!"
- else
- @ 23,1
- @ 23,1 say "Directory does not exist!"
- endif
- @ 24,1 say "Press any key to continue."
- inkey(0)
- mpath = mpath + space(64-len(mpath))
- enddo
- return