home *** CD-ROM | disk | FTP | other *** search
- on putKeep N
- global virTracklIst, audioList, keepList, gBlue, gRed
- if getPos(virTracklIst, N) then
- if getAt(keepList, integer(word 1 of line N of field "fieldAudio")) then
- set the foreColor of word 1 of line N of field "fieldAudio" to gBlue
- setAt(keepList, integer(line N of field "fieldAudio"), 0)
- else
- set cat to chars(getAt(audioList, N), 1, length(getAt(audioList, N)) - 2)
- if char 1 of cat = "U" then
- set cat to chars(cat, 2, length(cat))
- end if
- set numKeep to 0
- repeat with i = 1 to 8
- if getAt(keepList, i) then
- set temp to getAt(audioList, getAt(virTracklIst, i))
- if offset(cat, temp) then
- set numKeep to numKeep + 1
- end if
- end if
- end repeat
- if numKeep < 4 then
- set the foreColor of word 1 of line N of field "fieldAudio" to gRed
- setAt(keepList, integer(word 1 of line N of field "fieldAudio"), 1)
- end if
- end if
- end if
- end
-