home *** CD-ROM | disk | FTP | other *** search
- on readcat
- global cc_no, wc_no, group, m_item, cat1max, cat2max
- cursor(4)
- if group = "COOL" then
- set st_no to cc_no
- else
- if group = "WARM" then
- set st_no to wc_no
- end if
- end if
- set m_item to []
- repeat with i = 1 to 6
- if (group = "COOL") and (st_no > cat1max) then
- set st_no to 1
- else
- if (group = "WARM") and (st_no > cat2max) then
- set st_no to 1
- end if
- end if
- if st_no < 10 then
- addAt(m_item, "0" & string(st_no))
- else
- addAt(m_item, string(st_no))
- end if
- set st_no to st_no + 1
- set pa_no to "Pan-" & string(i)
- disp_pict(pa_no, "BLUE:" & group && "BLUE" & ":100B24:" & getAt(m_item, i))
- set the text of cast ("TX-" & i) to getAt(m_item, i)
- end repeat
- cursor(-1)
- end
-