home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global nm, dscr, inst, rn, xfile, Path
- set nm to []
- set dscr to []
- set inst to []
- set rn to []
- set Path to []
- set xfile to []
- puppetSprite(17, 1)
- puppetSprite(18, 1)
- puppetSprite(19, 1)
- set the visible of sprite 21 to 0
- set iold to the itemDelimiter
- set the itemDelimiter to ";"
- set fp to new(xtra("fileio"))
- openFile(fp, "utildat.csv", 1)
- set txt to readLine(fp)
- set txt to chars(txt, 1, length(txt) - 1)
- add(nm, item 1 of txt)
- add(dscr, item 4 of txt)
- add(inst, item 2 of txt)
- add(rn, item 3 of txt)
- add(Path, item 5 of txt)
- add(xfile, item 6 of txt)
- set cat to item 1 of txt & RETURN
- 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(dscr, item 4 of txt)
- add(inst, item 2 of txt)
- add(rn, item 3 of txt)
- add(Path, item 5 of txt)
- add(xfile, item 6 of txt)
- set cat to cat & item 1 of txt & RETURN
- end repeat
- set the text of member "list" to chars(cat, 1, length(cat) - 1)
- set the text of member "descr" to EMPTY
- set the text of member "details" to EMPTY
- closeFile(fp)
- set fp to 0
- set the itemDelimiter to iold
- end
-