home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global dscr, inst, rn, xfile, Path, rpath, ipath, source
- set a to the mouseLine
- if a > 0 then
- hilite line a of field "list"
- set the text of member "descr" to getAt(dscr, a)
- set pth to getAt(Path, a)
- if pth > EMPTY then
- set the member of sprite 19 to "COPYUP"
- set source to the pathName & pth
- else
- set the member of sprite 19 to "COPYG"
- end if
- set rpath to getAt(rn, a)
- if rpath > EMPTY then
- set rpath to pth & rpath
- set the member of sprite 18 to "RUNUP"
- else
- set the member of sprite 18 to "RUNG"
- end if
- if getAt(xfile, a) > EMPTY then
- set dtl to EMPTY
- set xxx to pth & getAt(xfile, a)
- set fp to new(xtra("fileio"))
- openFile(fp, xxx, 1)
- set dtl to readFile(fp)
- closeFile(fp)
- set fp to 0
- set the text of member "details" to dtl
- set the text of member "detailsb" to dtl
- else
- set the text of member "details" to EMPTY
- set the text of member "detailsb" to EMPTY
- end if
- end if
- end
-