home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global nm, bnm, dscr, inst, rn, pth, xfile
- set nm to []
- set dscr to []
- set inst to []
- set rn to []
- set pth to []
- set xfile to []
- repeat with i = 55 to 70
- set the visible of sprite i to 0
- end repeat
- set the visible of sprite 6 to 0
- set the visible of sprite 4 to 0
- set iold to the itemDelimiter
- set the itemDelimiter to ";"
- set fp to new(xtra("fileio"))
- openFile(fp, "demodat.csv", 1)
- set txt to readLine(fp)
- set txt to chars(txt, 1, length(txt) - 1)
- add(nm, item 1 of txt)
- add(pth, item 4 of txt)
- add(dscr, item 5 of txt)
- add(inst, item 2 of txt)
- add(rn, item 3 of txt)
- add(xfile, item 6 of txt)
- repeat while txt > EMPTY
- set txt to readLine(fp)
- set txt to chars(txt, 2, length(txt) - 1)
- add(nm, item 1 of txt)
- add(pth, item 4 of txt)
- add(dscr, item 5 of txt)
- add(inst, item 2 of txt)
- add(rn, item 3 of txt)
- add(xfile, item 6 of txt)
- end repeat
- closeFile(fp)
- set fp to 0
- set the itemDelimiter to iold
- set the text of member "description" to EMPTY
- end
-