home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / moss.zip / SET.PRG < prev   
Text File  |  1986-11-09  |  477b  |  22 lines

  1. * SET.PRG chooses an active database.
  2. dab=space(8)
  3. do while len(trim(dab))<1
  4. @ 2,2 say "What database would you like to use [<Return> for a directory]:" get dab
  5. read
  6. if len(trim(dab))<1
  7.  dir
  8. endif
  9. enddo
  10. @ 3,0 clear to 5,79
  11. indx=space(8)
  12. @ 5,0 say "EXISTING INDEX FILES:"
  13. run dir *.ndx/w
  14.  @ 3,2 say "What's the index file for this database (<Return> for none)?" get indx
  15. read
  16. if len(trim(indx))>0
  17. use &dab index &indx
  18. else
  19. use &dab
  20. endif
  21. filt="ALL "
  22. return