home *** CD-ROM | disk | FTP | other *** search
- on hfile2
- global gReadObject
- set stime to the ticks
- set the itemDelimiter to ","
- set lup1 to EMPTY
- set lup2 to EMPTY
- set lup3 to EMPTY
- set lup4 to EMPTY
- set lup5 to EMPTY
- set lup6 to EMPTY
- set lup7 to EMPTY
- set lup8 to EMPTY
- set lup9 to EMPTY
- set lup10 to EMPTY
- set lup11 to EMPTY
- set lup12 to EMPTY
- set lup13 to EMPTY
- set lup14 to EMPTY
- set lup15 to EMPTY
- set lup16 to EMPTY
- set lup17 to EMPTY
- set lup18 to EMPTY
- set lup19 to EMPTY
- set lup20 to EMPTY
- set gReadObject to FileIO(mnew, "read", the pathName & "inout.txt")
- repeat with index = 1 to 5598
- if (index mod 100) = 1 then
- put index
- end if
- set cname to gReadObject(mReadLine)
- set lword to item 1 of cname
- set tp to shash(lword)
- set lname to "lup" & item 1 of tp
- set rx to item 1 of tp
- put "!" after line 1 of cname
- set exres to " put line 1 of cname after line (value (item 2 of tp)) of lup" & rx
- do(exres)
- end repeat
- put lup1 into field "lup1"
- put lup2 into field "lup2"
- put lup3 into field "lup3"
- put lup4 into field "lup4"
- put lup5 into field "lup5"
- put lup6 into field "lup6"
- put lup7 into field "lup7"
- put lup8 into field "lup8"
- put lup9 into field "lup9"
- put lup10 into field "lup10"
- put lup11 into field "lup11"
- put lup12 into field "lup12"
- put lup13 into field "lup13"
- put lup14 into field "lup14"
- put lup15 into field "lup15"
- put lup16 into field "lup16"
- put lup17 into field "lup17"
- put lup18 into field "lup18"
- put lup19 into field "lup19"
- put lup20 into field "lup20"
- gReadObject(mdispose)
- put (the ticks - stime) / 3600
- end
-
- on clearlup
- repeat with index = 1 to 20
- set nm to "lup" & index
- put EMPTY into field nm
- end repeat
- beep(1)
- end
-
- on writefile
- global gWriteobject
- set gWriteobject to FileIO(mnew, "write", the pathName & "x.txt")
- repeat with index = 106 to 813
- set thetext to the text of cast index
- gWriteobject(mWriteString, thetext)
- gWriteobject(mWriteString, "@")
- end repeat
- gWriteobject(mdispose)
- beep()
- end
-