home *** CD-ROM | disk | FTP | other *** search
- on searchdata entereddate
- global expiredentries, cutoffdate
- set cutoffdate to entereddate
- set expiredentries to list()
- put EMPTY into field "deletion summary"
- repeat with j = 1 to the number of castMembers of castLib "review_d"
- set whichentry to the name of member member j of castLib "review_d"
- gettopic(whichentry)
- end repeat
- put "count(expiredentries)" && count(expiredentries)
- repeat with l = 1 to count(expiredentries)
- set thismember to getAt(expiredentries, l) & "_c"
- put "clearing (closeup): " && thismember & RETURN after field "deletion summary"
- clearoldrecords(thismember)
- end repeat
- repeat with l = 1 to count(expiredentries)
- set thismember to getAt(expiredentries, l) & "_f"
- put "clearing (feature): " && thismember & RETURN after field "deletion summary"
- clearoldrecords(thismember)
- end repeat
- repeat with l = 1 to count(expiredentries)
- set thismember to getAt(expiredentries, l) & " graphic text"
- put "clearing (graphic): " && thismember & RETURN after field "deletion summary"
- clearoldrecords(thismember)
- end repeat
- set softwarelists to list("graphics software list", "utility software list", "business software list", "internet related software list", "reference software list", "entertainment software list", "monitors list", "computers list", "laptops list", "pdas list", "printers list", "scanners list", "storage list", "input devices list", "digital cameras list", "sound cards list", "graphics cards list", "cd-rom drives list", "hard drives list", "cd writers list", "misc list", "modems list", "pc cards list")
- repeat with l = 1 to count(expiredentries)
- set thismember to getAt(expiredentries, l)
- repeat with m = 1 to count(softwarelists)
- repeat with n = the number of lines in field getAt(softwarelists, m) down to 1
- if line n of field getAt(softwarelists, m) = thismember then
- delete line n of field getAt(softwarelists, m)
- end if
- end repeat
- end repeat
- end repeat
- put "starting consolidation of cast review_d"
- consolidatecasts("review_d")
- put "finished consolidation of cast review_d"
- put "starting consolidation of cast review_c"
- consolidatecasts("review_c")
- put "finished consolidation of cast review_c"
- end
-
- on gettopic whichentry
- global cutoffdate, expiredentries
- set temptext to the text of field whichentry
- set fieldcount to 0
- repeat with i = 1 to the number of chars in temptext
- if char i of temptext = "_" then
- set fieldcount to fieldcount + 1
- if fieldcount = 1 then
- set nameparameter to list(1, i - 1)
- end if
- if fieldcount = 4 then
- set dateparameter to list(i + 1, 0)
- end if
- if fieldcount = 5 then
- setAt(dateparameter, 2, i - 1)
- end if
- end if
- end repeat
- set thisentry to chars(temptext, getAt(nameparameter, 1), getAt(nameparameter, 2))
- set thisdate to chars(temptext, getAt(dateparameter, 1), getAt(dateparameter, 2))
- if length(thisdate) < 5 then
- set thisdate to "0" & thisdate
- end if
- set thisdate to chars(thisdate, 4, 5) & chars(thisdate, 1, 2)
- set datevalue to value(thisdate)
- if datevalue < cutoffdate then
- append(expiredentries, thisentry)
- put thisdate && thisentry & RETURN after field "deletion summary"
- end if
- end
-
- on clearoldrecords thismember
- global cutoffdate
- set checkexists to the number of member thismember
- if checkexists > 1 then
- erase(member thismember)
- end if
- end
-