home *** CD-ROM | disk | FTP | other *** search
- '
- ' Simple Example of using the ASL File Requester
- ' Note that the names used are the new names introduced in V38
- ' not the tag names shown in the RKM manuals which are now obsolete
- ' This program will work with any version of the ASL library from
- ' V36 up.
- DEFINT a-z
- REM $include asl.bh
- LIBRARY OPEN "asl.library"
- CONST TAG_DONE&=0
- DIM frtags&(20)
- TAGLIST VARPTR(frtags&(0)),ASLFR_TitleText&,"HiSoft BASIC File Requester", _
- ASLFR_InitialFile&,"", _
- ASLFR_InitialDrawer&, CURDIR$, _
- TAG_DONE&
-
- fr&=AllocAslRequest&(ASL_FileRequest&,VARPTR(frtags&(0)))
- IF fr& THEN
- IF AslRequest&(fr&,0) THEN
- PRINT "file "+PEEK$(PEEKL(fr&+fr_File))
- PRINT "dir "+PEEK$(PEEKL(fr&+fr_Drawer))
- ELSE
- PRINT "Canceled"
- END IF
- FreeASlRequest fr&
- END IF
-
-
-