home *** CD-ROM | disk | FTP | other *** search
- on savedata
- global getpoints, getpieces, getitems, explode, etcpict, moteloldman, sheriffcheck, masterrunning, nearmiss, seedog, oldsuzan
- openXLib("fileio.dll")
- set fileobj to fileio(mnew, "?write", "S_DATA.TXT")
- if objectp(fileobj) then
- set line1 to string(getAt(getpoints, 1)) & "," & string(getAt(getpoints, 2)) & "," & string(getAt(getpoints, 3)) & "," & string(getAt(getpoints, 4)) & "," & string(getAt(getpoints, 5)) & "," & string(getAt(getpoints, 6)) & "," & string(getAt(getpoints, 7)) & "," & string(getAt(getpoints, 8)) & RETURN
- set line2 to string(getAt(getpieces, 1)) & "," & string(getAt(getpieces, 2)) & "," & string(getAt(getpieces, 3)) & "," & string(getAt(getpieces, 4)) & "," & string(getAt(getpieces, 5)) & "," & string(getAt(getpieces, 6)) & "," & string(getAt(getpieces, 7)) & "," & string(getAt(getpieces, 8)) & "," & string(getAt(getpieces, 9)) & "," & string(getAt(getpieces, 10)) & RETURN
- set line3 to string(getAt(getitems, 1)) & "," & string(getAt(getitems, 2)) & "," & string(getAt(getitems, 3)) & "," & string(getAt(getitems, 4)) & "," & string(getAt(getitems, 5)) & "," & string(getAt(getitems, 6)) & "," & string(getAt(getitems, 7)) & RETURN
- set line4 to string(getAt(explode, 1)) & "," & string(getAt(explode, 2)) & "," & string(getAt(explode, 3)) & "," & string(getAt(explode, 4)) & RETURN
- set line5 to string(getAt(etcpict, 1)) & "," & string(getAt(etcpict, 2)) & "," & string(getAt(etcpict, 3)) & "," & string(getAt(etcpict, 4)) & "," & string(getAt(etcpict, 5)) & "," & string(getAt(etcpict, 6)) & "," & string(getAt(etcpict, 7)) & "," & string(getAt(etcpict, 8)) & "," & string(getAt(etcpict, 9)) & "," & string(getAt(etcpict, 10)) & "," & string(getAt(etcpict, 11)) & "," & string(getAt(etcpict, 12)) & "," & string(getAt(etcpict, 13)) & RETURN
- set line6 to string(moteloldman) & "," & string(sheriffcheck) & "," & string(masterrunning) & "," & string(nearmiss) & "," & string(seedog) & "," & string(oldsuzan)
- set data to line1 & line2 & line3 & line4 & line5 & line6
- fileobj(mwritestring, data)
- fileobj(mdispose)
- else
- if fileio(merror, fileobj) <> "File Not Found" then
- alert("Can't saved -->This error is" && QUOTE & fileio(merror, fileobj) & QUOTE)
- end if
- end if
- closeXLib("fileio.dll")
- end
-